Skip to content
Browse files

[doc] Add simple example

  • Loading branch information...
1 parent fab8b8b commit e063c446c2c8741814bf84b8f4bb05eeeda6c5f7 @mmalecki committed Jun 20, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 examples/simple.js
View
10 examples/simple.js
@@ -0,0 +1,10 @@
+var spawnCommand = require('../');
+ child = spawnCommand('echo "Hello spawn" | base64');
+
+child.stdout.on('data', function (data) {
+ console.log('data', data.toString());
+});
+
+child.on('exit', function (exitCode) {
+ console.log('exit', exitCode);
+});

0 comments on commit e063c44

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