Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    babel-preset-power-assertpublic

    power-assert

    Build Status NPM version License

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

    babel-preset-power-assert contains plugins below

    INSTALL

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

    HOW TO USE

    via .babelrc (Recommended)

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

    via Babel CLI

    $ babel --presets 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: ['power-assert']
    });
    console.log(transformed.code);

    AUTHOR

    LICENSE

    Licensed under the MIT license.

    install

    npm i babel-preset-power-assert

    Downloadsweekly downloads

    3,542

    version

    2.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar