inxilpro / node-app-root-path

Determine the root path to your project
MIT License
605 stars 29 forks source link

Auto including index.js #37

Closed soubhikchatterjee closed 4 years ago

soubhikchatterjee commented 5 years ago

With node's require, when you specify a path of a folder, if there an index.js file, require automatically picks up the index.js file.

Is that not the case with this module? Do i have to specify index.js explicitly?

carlrannaberg commented 4 years ago

It uses Node.js require internally so this work as you describe.