Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Should `runMain()` and `globalPaths` of module add in doc? #32643

Open
zjffun opened this issue Apr 3, 2020 · 0 comments
Open

doc: Should `runMain()` and `globalPaths` of module add in doc? #32643

zjffun opened this issue Apr 3, 2020 · 0 comments

Comments

@zjffun
Copy link

@zjffun zjffun commented Apr 3, 2020

By chance, I find runMain() method was used in babel-node but it can't be found in API.

I also checked issue and code, but nothing.

$ git grep runMain $(git rev-list --all doc/api/modules.md) -- doc/api/modules.md
# nothing

$ git grep globalPaths $(git rev-list --all doc/api/modules.md) -- doc/api/modules.md
# nothing

$ git grep builtinModules $(git rev-list --all doc/api/modules.md) -- doc/api/modules.md
534c204e223d85c44cd6b1b642f29143095077f6:doc/api/modules.md:### `module.builtinModules`
534c204e223d85c44cd6b1b642f29143095077f6:doc/api/modules.md:const builtin = require('module').builtinModules;
a220202a47ee87d1ef91fa8f65a3e048f298b7c1:doc/api/modules.md:### `module.builtinModules`

However the builtinModules property near globalPaths can be found. Should runMain() and globalPaths of module add to doc? If needed, I would be pleased to write them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.