0.2.0 • Published 9 years ago

prom-spawn v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Alternative solutions

Examples

// basic usage
var p = require('prom-spawn');

// note that p() returns a function that returns a promise
p('rm', '-rf', 'tmpfolder')().then(function() {
  console.log('Success!');
});
// chaining commands
var p = require('prom-spawn');
p('createdb', 'mydb', '-T', 'template_db')()
  .then(p('psql', 'mydb', '-c', 'DELETE FROM mytable WHERE 1=1'))
  .then(('sed','-i','s/good/such wow/g','doge.txt'));
0.2.0

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago