Skip to content

Commit

Permalink
windows compatible command
Browse files Browse the repository at this point in the history
win compatible simple echo command without base64 as it doesn't exists on windows by default
  • Loading branch information
speier committed Nov 6, 2012
1 parent 8ffc365 commit 6d912fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/simple.js
@@ -1,5 +1,6 @@
var spawnCommand = require('../'); var spawnCommand = require('../'),
child = spawnCommand('echo "Hello spawn" | base64'); command = (process.platform === 'win32') ? 'echo Hello spawn' : 'echo "Hello spawn" | base64',
child = spawnCommand(command);


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

0 comments on commit 6d912fc

Please sign in to comment.