aseemk / requireDir

Node.js helper to require() directories.
MIT License
484 stars 60 forks source link

Require directories within directory? #2

Closed bebraw closed 10 years ago

bebraw commented 10 years ago

I have a situation like this:

I would like to expose bar and baz through foo. Unfortunately require-dir takes just files in count. Maybe this would be a good extra option? I know it's a special case.

aseemk commented 10 years ago

Have you seen the recurse option? Check out the readme if you haven't!

On Tuesday, May 6, 2014, Juho Vepsäläinen notifications@github.com wrote:

I have a situation like this:

  • /foo/index.js - require-dir is executed here
  • /foo/bar/index.js
  • /foo/baz/index.js

I would like to expose bar and baz through foo. Unfortunately require-dirtakes just files in count. Maybe this would be a good extra option? I know it's a special case.

— Reply to this email directly or view it on GitHubhttps://github.com/aseemk/requireDir/issues/2 .

bebraw commented 10 years ago

Ok, good catch! Closing.