An ES6+ to ES5 compiler and runtime environment, written in ES6. Version 1.2.8 is the current stable release. Allows writing programs using next-generation JavaScript features (classes, modules, etc.) and compiling them to ES5 for legacy environments. Can also be used as a runtime to execute ES6+ modules on Node.js via a REPL or direct module execution. Provides a CLI for translation with bundling and global export options. Key differentiator: includes module loading and bundling, comparable to Babel but more limited in scope and features; largely superseded by Babel and TypeScript.
npm install esdownNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates using esdown as a runtime to execute ES6 modules and as a compiler to produce a bundled ES5 output.
Migrate to Babel (https://babeljs.io) or TypeScript (https://typescriptlang.org).
Check the limitations document (docs/limitations.md) for unsupported features.
Always test translation output after upgrading.
Use: var esdown = require('esdown'); esdown.translate(...);Run: npm install esdown (for local) or npm install -g esdown (for global CLI).
Use esdown main.js to run the file, or compile to ES5 first.
No dependency data recorded yet.