Socket
Book a DemoInstallSign in
Socket

es6-migrate

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-migrate

Convert CoffeeScript to ES6 and fix StandardJS violations.

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

es6-migrate

JavaScript Style Guide Build Status

Convert AMD CoffeeScript to ES6 JavaScript. Tasks performed:

  • CoffeeScript => JavaScript
  • AMD Modules => ES6 Modules
  • Fix StandardJS violations
  • Remove original CoffeeScript files

Installation

$ npm install es6-migrate

Usage

es6Migrate <files> <options>

Options

NameExceptedDefaultDescription
files{Array}n/aArray of files to migrate.
extension{String}.jsExtension to use when writing converted files.

Examples

# 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

Testing

Jest is the test runner used for this project.

# Run the tests
npm test

# Run the tests in interactive mode
npm test:watch

Keywords

convert

FAQs

Package last updated on 18 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts