Skip to content

Instantly share code, notes, and snippets.

@octocat octocat/test.cs
Created Aug 25, 2011

Embed
What would you like to do?
require("./rx");
var child_process = require("child_process");
for (var k in child_process) {
exports[k] = child_process[k];
}
exports.exec = function (command, options) {
var subject = new Rx.AsyncSubject();
var handler = function (err, stdout, stderr) {
if (err !== null) {
subject.OnError(err);
} else {
subject.OnNext({ stdout: stdout, stderr: stderr });
subject.OnCompleted();
}
};
child_process.exec(command, options, handler);
return subject;
};
@R2D221

This comment has been minimized.

Copy link

commented Dec 19, 2014

I may not be an expert, but isn't this Javascript instead of C#?

@slvnperron

This comment has been minimized.

Copy link

commented Jan 27, 2015

Yes, it is. (nodejs)

@codemilli

This comment has been minimized.

Copy link

commented Apr 14, 2016

@R2D221 CS might mean the CoffeeScript, I think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.