npm

Need private packages and team management tools?Check out npm Orgs. »

slue-babel

1.0.7 • Public • Published

slue-babel

Transform es6 to es5.

useage

const slueFs = require('slue-fs');
const slueFs = require('slue-stream');
const slueBabel = require('slue-babel');
 
slueFs.read('./test/main.js').pipe(slueBabel());
 
slueFs.read('./test/main.js').pipe(slueBabel({
    sourceMaps: true  // default false
})).pipe(slueStream.transformObj(function(file, env, cb) {
    console.log(file.sourceMap);
    cb(null, file);
}));

install

npm i slue-babel

Downloadsweekly downloads

10

version

1.0.7

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability