A source transformer that converts ES6+ generator functions and async iteration into ES5-compatible JavaScript.
Regenerator is a source transformation tool that converts ECMAScript 6 (ES2015) generator functions and asynchronous iteration syntax into ES5-compatible JavaScript. It solves the problem of using modern JavaScript features like `function*` and `yield` in environments that only support older JavaScript versions, enabling developers to write cutting-edge code without worrying about browser or runtime compatibility.
JavaScript developers and tooling authors who need to support ES5 environments while using ES6+ generator functions or async iteration, such as those building transpilers, build tools, or polyfills.
Developers choose Regenerator for its reliability in transforming generator syntax, its minimal runtime footprint, and its integration with tools like Babel. It provides a battle-tested solution maintained by Facebook, ensuring compatibility with evolving JavaScript standards.
Source transformer enabling ECMAScript 6 generator functions in JavaScript-of-today.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Reliably converts ES6 generator functions and async iteration syntax into performant ES5 code, as evidenced by its integration in major tools like Babel for backward compatibility.
Includes a compact runtime library under 1KB compressed, ensuring low impact on bundle size while enabling generator functionality in older environments.
Supports CLI usage, programmatic Node.js integration, and AST transformation with Recast, offering flexibility for various development workflows.
Maintained by Facebook with a sandbox for testing and bug reporting, ensuring high reliability and adherence to JavaScript standards.
Focuses solely on generators and async iteration, requiring additional transpilers like Babel for other ES6+ features such as arrow functions or classes.
Necessitates a runtime library, which adds slight overhead and may not align with projects aiming for zero-runtime or minimal-dependency architectures.
Advanced usage with AST tools like Recast can be intricate, demanding deeper knowledge of JavaScript parsing and transformation workflows.