On Apr 22, 02014, at 13:05, Chetan Dhembre <chetandhem...@gmail.com> wrote:
> > > Can any one tell how people manage large code base ?
> >
> > Break things up into small modules -- commit them in node_modules, or 
> > isolate
> 
> I created module (local-require) which simple create symbolic link of ur 
> local module to node_modules folder so that you can use them directly from 
> any place from codebase.
> 
> 

That works with node as-is:

in node_modules/test/c.js:

    module.exports = “HELLO”;

in test.js, no matter how deep into the directory structure sibling to 
node_modules:

    console.log(require(‘test/c.js’));

logs “HELLO”.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to