News for hackers. Stuff that matters.
Re:Your first Node.js module by secoif on Monday May 28, 2012 @08:31AM (#4033028)
You shouldn't require using the extension.

This gives you the flexibility to transparently change the file into a folder + index.*, then break functionality up into pieces that live inside that folder.

Re:Your first Node.js module by radagaisus on Monday May 28, 2012 @09:35AM (#4033246)
Still, currently you need to require everything with a relative path unless it's inside node_modules.