[nodejs] customize local node.js ( switch to require module / .noderc.js ? )

2013-04-03 Thread Andrey
Hi, Is there currently a way to automatically require module before executing any other scripts (or have .rc/profile javascript file executed on startup)? Something like this: `node -r /path/to/myhelpers.js test.js` - same as having implicit `require("/path/to/myhelpers.js")` as first line in t

Re: [nodejs] customize local node.js ( switch to require module / .noderc.js ? )

2013-04-03 Thread Angel Java Lopez
Hi everyone! First idea: do.js for (var k=2; k wrote: > Hi, > Is there currently a way to automatically require module before executing > any other scripts (or have .rc/profile javascript file executed on > startup)? > Something like this: `node -r /path/to/myhelpers.js test.js` - same as > havi