initial commit

This commit is contained in:
Yorick
2016-04-01 14:09:55 +00:00
commit 2e04121fef
2175 changed files with 537519 additions and 0 deletions
Generated Vendored Executable
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env node
var python = require('../lib/python').shell;
var mycallback = function(err, data) {
if (err) {
console.error(err);
} else {
process.stdout.write(data + '\n>>> ');
}
};
process.stdout.write('Using Python from NodeJS\n>>> ');
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
python(chunk, mycallback);
});
process.stdin.on('end', function() {
python('quit()');
});