es6-module-transpiler is an experimental compiler that allows writing JavaScript using a subset of the current ES6 module syntax, compiling it into AMD or CommonJS modules. Version 0.3.1 is the latest stable release. It provides a way to experiment with ES6 module syntax in real-world scenarios. Key differentiators: closely tracks TC39 module proposals, supports both AMD and CommonJS output, and provides a command-line interface. Note: This project is experimental and may not follow semver; syntax may change.
npm install es6-module-transpiler-rewriteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows both CLI usage and library usage to compile ES6 module syntax to AMD.
Use a more up-to-date transpiler like Babel or TypeScript.
Refer to current ES module spec or use modern tools.
Supply --imports like '--imports ember:Ember' or equivalent options hash.
Either use single file or omit --module-name.
Install directly from git: npm install -g <git-url>
Install from git: npm install -g https://git.squareup.com/javascript/es6-module-transpiler
Ensure global npm modules path is in PATH, or use npx.
Run the code through the transpiler first, or use a runtime that supports ES modules.
No dependency data recorded yet.