Skip to content

Instantly share code, notes, and snippets.

View ggreer's full-sized avatar

Geoff Greer ggreer

View GitHub Profile
@ggreer
ggreer / ag_spawn.js
Created September 1, 2012 09:28 — forked from gjtorikian/ag_spawn.js
Testing Ag via Node script
var spawn = require('child_process').spawn;
var cmd = spawn(
"./ag",
["blah", "."]);
cmd.stdout.setEncoding('utf8');
cmd.stdout.on('data', function (data) {
console.log('stdout: ' + data);
});