Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: f92a470f6f
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (23 sloc) 0.565 kb
#!/usr/bin/env node
var exec = require('child_process').exec,
args = process.argv.slice(2),
bf = require('node-brainfuck');
while (args.length) {
var arg = args.shift();
switch (arg) {
case '-h':
case '--help':
console.error('\x1b[1mUsage\x1b[0m: node-brainfuck [options] FILE\n'
+ '\n'
+ '\x1b[1mOptions\x1b[0m:\n'
+ ' -h, --help Output help information\n'
);
process.exit(1);
break;
default:
file = arg;
}
}
child = exec('cat ' + file, function (error, stdout, stderr) {
bf(stdout);
});
Jump to Line
Something went wrong with that request. Please try again.