-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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: missing require calls in some code examples #6596
Comments
Feel free to open a pull request for any sample code that is missing a non-obvious /cc @nodejs/documentation especially @vsemozhetbyt who may have already fixed this? |
@Trott As I recall, we have a huge amount of omissions here, and this is partly the cause the |
In that case, should we close this issue? |
If nobody has an objection, maybe we could. |
Closing, but if anyone (including original poster) thinks that's misguided, feel free to comment (or re-open if GitHub permits you to). |
Hi guys, Just in case you want to know, why I'm so picky about this (feel free to ignore this): 😉 |
Hi,
wandering through the api docs, I recognized that some code examples do
not have a
const foo = require('foo');
in it, but just usefoo
without requiring it.Obviously when we talk about global modules like
Buffer
orprocess
this is totally correct.However some require calls are really missing, among others, in e.g. net module or querystring module.
I would like to create a PR for it, adding the missing require calls.
In this context, I would also like to mention the PR about introducing ESLint for the docs, where this ESLint rule seems to be a good fit for this issue.
Do you guys have any thoughts or proposals for this issue before I dive in?
Thanks for your feedback. 😉
The text was updated successfully, but these errors were encountered: