CLI to convert AMD CoffeeScript to ES6 Standard JavaScript.
MIT License
Convert AMD CoffeeScript to ES6 JavaScript. Tasks performed:
$ npm install es6-migrate
es6Migrate <files> <options>
Name | Excepted | Default | Description |
---|---|---|---|
files |
{Array} |
n/a | Array of files to migrate. |
extension |
{String} |
.js |
Extension to use when writing converted files. |
# Single file
es6Migrate ./src/scripts/index.coffee
# Directory of files
es6Migrate ./src/scripts/**/*.js.coffee
# Write converted files with an`.es6.js` file extension
es6Migrate ./src/scripts/**/*.coffee --extension .es6.js
Jest is the test runner used for this project.
# Run the tests
npm test
# Run the tests in interactive mode
npm test:watch