esnext
Bring your JavaScript into the future.
Installation
$ npm install -g esnext
Usage
After installing, run esnext -h
for comprehensive usage instructions.
Features
Modules
Translate CommonJS modules into ES6 modules:
var readFile = readFile;const MagicString = ;let ok strictEqual: eq = ; exports { ;}; // ↑ becomes ↓ ;;; { ;}
Functions
Translate some regular functions to arrow functions:
list; // ↑ becomes ↓ list;