nejs
v0.1.19
Published
ECMAScript 6 to ECMAScript 3 transpiler.
Downloads
20
Maintainers
Readme
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.