Check out utile: https://github.com/flatiron/utile
It has helpers requireDir and requireDirLazy which scan for .js files and exposes an object for each file with the key being the filename. On Fri, Jan 18, 2013 at 10:27 PM, Luke Arduini <lucasardu...@gmail.com>wrote: > Magically finding files in a /lib directory sounds scary. Maybe I missed > it, why not be explicit with your requires if you're including multiple > files in your module? (not commenting on if I think this is a good idea) > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en