Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    nejspublic

    NeJS

    ECMAScript 6 to ECMAScript 3 compiler.

    Deprecated. Use Babel

    Usage

    npm install -g nejs
    nejs [options] [dir|file ...]

    Synopsis

    • let, const delclaration (defs.js);
    • arrow functions.

    Examples:

    () => ...
    param => ...
    (param1, param2) => {
      ...
      return ...
    }
    • rest parameters

    Examples:

    function foo(a, b, ...other) {
      ...
    }
    • default parameters

    Examples:

    function foo(a, b = 1) {
      ...
    }
    • named parameters

    Examples:

    function foo({name, body: lastName}) {
      console.log(name);
      console.log(lastName);
    }
     
    foo({name: 'Foo', body: 'Bar'});

    License

    The MIT License.

    install

    npm i nejs

    Downloadslast 7 days

    2

    version

    0.1.19

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar