Is there a way configure node.js\'s repl? I want to require jquery and underscore automatically whenever the repl starts. Is there a file (noderc?) that node.js loads when i
Keeping things simple here's what I clabbered up.
repl.js:
// things i want in repl
global.reload = require('require-nocache')(module) // so I can reload modules as I edit them
global.r = require('ramda') // <3 http://ramdajs.com/
// launch, also capture ref to the repl, in case i want it later
global.repl = require('repl').start()
I can invoke this with node repl which feels right, and I don't care about globals, because I am just messin' around in the repl.