Skip to content

Instantly share code, notes, and snippets.

@kumavis
Created August 8, 2013 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumavis/6c5bba624667c50cde3c to your computer and use it in GitHub Desktop.
Save kumavis/6c5bba624667c50cde3c to your computer and use it in GitHub Desktop.
var bash = require('bashful')
var level = require('level');
var db = level('.' + '/db');
var fs = require('level-fs')(db);
var sh = bash({
env: process.env,
spawn: require,
write: fs.createWriteStream,
read: fs.createReadStream,
exists: fs.exists
});
var s = sh.createStream();
process.stdin.pipe(s).pipe(process.stdout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment