📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

es6m2amd

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6m2amd

ECMAScript 6 module to AMD converter

1.0.8
latest
npm
Version published
Weekly downloads
11
120%
Maintainers
1
Weekly downloads
 
Created
Source

ECMAScript6 module to AMD converter

Converts ECMAScript 6 modules to AMD.

Install

$ [sudo] npm install -g es6m2amd

Usage

$ m2amd -o out examples

Where "examples" is the directory which will be scanned for files and "out" is the folder, in which the processed files will be stored.

You can include only some of the files in a directory by specifying file pattern via "-i" option, like this:

$ m2amd -o out -i "**/module.js" examples

In this case only file, called "module.js" in whatever sub-directory of "examples" folder will be processed.

Source maps will be generated if you run the program with -m option.

Look for more information in the rest of the options:

$ m2amd --help

  Usage: m2amd [options] <folder ...>

  Options:

    -h, --help                     output usage information
    -o, --output [output folder]   output folder to store the generated AMD module. Default: current directory
    -i, --include [file patterns]  file patterns to process. Default: "**/*.js"
    -m, --map [source map]         Generate source map
    -V, --version                  output the version number

License

LGPL License

Build Status

Keywords

es6

FAQs

Package last updated on 27 Jan 2015

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