es-tar
v0.1.0
Published
include `#include` extend-script file to standalone executable extend-script
Downloads
51
Readme
es-tar
include #include
extend-script file to standalone executable extend-script
usage
// $ npm install es-tar
var fs = require('fs');
var estar = require('es-tar');
var jsxPath = __dirname+'/jsx/test.jsx';
var out = __dirname+'/build.jsx';
// stream
estar(jsxPath,{encoding:'utf8'})
.pipe(fs.createWriteStream(out));
// sync
console.log(estar.sync(jsxPath,{encoding:'utf8'}));
or
$ npm install -g es-tar
$ es-tar jsx/test.jsx // => stdout
$ es-tar jsx/test.jsx -o build.jsx
or with fakestk
$ es-tar jsx/test.jsx | fakestk