babel-preset-nodejs
Babel preset for nodejs
Install
npm install --save-dev babel-preset-nodejs
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
babel script.js --presets nodejs
Via Node API
;
Options
target
number
, defaults to 4
.
node