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

    gobble-esnextpublic

    gobble-esnext

    Compile ES6 files with gobble and esnext.

    Installation

    First, you need to have gobble installed - see the gobble readme for details. Then,

    npm i -D gobble-esnext

    Usage

    gobblefile.js

    var gobble = require( 'gobble' );
    module.exports = gobble( 'js' ).map( 'esnext' );

    Source code

    module.exports = esnext;
     
    function esnext ( code, options ) {
      return require( 'esnext' ).compile( code );
    }
     
    esnext.defaults = {
      accept: '.js'
    };

    License

    MIT. Copyright 2014 Rich Harris

    Keywords

    install

    npm i gobble-esnext

    Downloadsweekly downloads

    7

    version

    0.1.1

    license

    none

    last publish

    collaborators

    • avatar