aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/spawn-command/examples/simple.js
blob: 96fab544377796a4a6a6daa376d46439c12b2b39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
var spawnCommand = require('../'),
    command = (process.platform === 'win32') ? 'echo "Hello spawn"' : 'echo "Hello spawn" | base64',
    child = spawnCommand(command);

child.stdout.on('data', function (data) {
  console.log('data', data.toString());
});

child.on('exit', function (exitCode) {
  console.log('exit', exitCode);
});
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage