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);
}));

Package Sidebar

Install

npm i slue-babel

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

4.52 kB

Total Files

7

Last publish

Collaborators

  • songgenlei