node package manager

babel-preset-power-assert

Babel preset for all power-assert plugins

power-assert

NPM version License

babel-preset-power-assert is a Babel preset for all power-assert plugins.

INSTALL

$ npm install --save-dev babel-preset-power-assert

HOW TO USE

via .babelrc (Recommended)

{
  "presets": [
    "babel-preset-power-assert"
  ]
}

via Babel CLI

$ babel --presets babel-preset-power-assert /path/to/src/target.js > /path/to/build/target.js

via Babel API

var babel = require('babel-core');
var jsCode = fs.readFileSync('/path/to/src/target.js');
var transformed = babel.transform(jsCode, {
    presets: ['babel-preset-power-assert']
});
console.log(transformed.code);

AUTHOR

LICENSE

Licensed under the MIT license.