Babel preset for all Nite plugins.
Install the CLI and this preset
npm install --save-dev babel-cli babel-preset-nite
Make a .babelrc config file with the preset
echo '{ "presets": ["nite"] }' > .babelrc
Create a file to run on
echo '<h1>Hello, world!</h1>' > index.js
View the output
./node_modules/.bin/babel index.js
.babelrc
{
"presets": ["nite"]
}
babel script.js --presets nite
require("babel-core").transform("code", {
presets: ["nite"]
});