mirror of
https://gitea.tendokyu.moe/pinapelz/Mirage.git
synced 2026-10-04 12:48:10 +03:00
initial commit: scaffolding
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
# spawn-command [](http://travis-ci.org/mmalecki/spawn-command)
|
||||
Spawn commands like `child_process.exec` does but return a `ChildProcess`.
|
||||
|
||||
## Installation
|
||||
|
||||
npm install spawn-command
|
||||
|
||||
## Usage
|
||||
```js
|
||||
var spawnCommand = require('spawn-command'),
|
||||
child = spawnCommand('echo "Hello spawn" | base64');
|
||||
|
||||
child.stdout.on('data', function (data) {
|
||||
console.log('data', data);
|
||||
});
|
||||
|
||||
child.on('exit', function (exitCode) {
|
||||
console.log('exit', exitCode);
|
||||
});
|
||||
```
|
||||
Reference in New Issue
Block a user