Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[doc] Add simple example

  • Loading branch information...
commit e063c446c2c8741814bf84b8f4bb05eeeda6c5f7 1 parent fab8b8b
Maciej Małecki authored

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 examples/simple.js
10 examples/simple.js
... ... @@ -0,0 +1,10 @@
  1 +var spawnCommand = require('../');
  2 + child = spawnCommand('echo "Hello spawn" | base64');
  3 +
  4 +child.stdout.on('data', function (data) {
  5 + console.log('data', data.toString());
  6 +});
  7 +
  8 +child.on('exit', function (exitCode) {
  9 + console.log('exit', exitCode);
  10 +});

0 comments on commit e063c44

Please sign in to comment.
Something went wrong with that request. Please try again.