0.1.0 • Published 10 years ago

space-machine v0.1.0

Weekly downloads
7
License
-
Repository
github
Last release
10 years ago

space-machine

Split a string by spaces. Use .spawn like an .exec!

Install

npm i -S space-machine

Usage

var spawn = require('child_process').spawn;
var machine = require('space-machine');
var command = 'node app --foo "bar baz"';

var args = machine(command);
// <- ['node', 'app', '--foo', '"bar baz"']

var program = args.shift();

spawn(program, args);

License

MIT