ECMAScript 6 to ECMAScript 3 compiler.
Deprecated. Use Babel
npm install -g nejs
nejs [options] [dir|file ...]
- 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'});
The MIT License.