Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Possible lack of documentation around require('module/filename') #7787

Closed
sudodoki opened this issue Jun 15, 2014 · 2 comments
Closed

Possible lack of documentation around require('module/filename') #7787

sudodoki opened this issue Jun 15, 2014 · 2 comments

Comments

@sudodoki
Copy link

There's a way to require separate files from modules in node_modules, via require('moduleName/path/to/file') syntax, but I couldn't find any reference on http://nodejs.org/api/modules.html. Is it not documented because it can be deprecated in the future or there wasn't just a PR / enough cycles to do that?

@chrisdickinson
Copy link

It's there to stay, AFAIK. Some upcoming features in npm rely on this behavior. It might be worthwhile to submit a docs PR for this.

@jasnell
Copy link
Member

jasnell commented Jun 3, 2015

Landed

@jasnell jasnell closed this as completed Jun 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants