Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (11 sloc) 417 Bytes
#!/usr/bin/env node --harmony
var repl = require('repl'),
fs = require('fs'),
path = require('path'),
vm = require('vm');
var myrepl = repl.start('> ');
var stup = path.join(process.env.HOME, '.noderc');
vm.runInContext(fs.readFileSync(stup).toString(), myrepl.context);
process.argv.slice(2).forEach(function(filename) {
vm.runInContext(fs.readFileSync(filename).toString(), myrepl.context);
});