Use the node: protocol in docs examples
#38343
Open
Labels
Comments
|
We may want to wait for this support for
That's really nice, thanks for doing this! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
node:protocol has many benefits:However, most people don't know about the
node:protocol. I suggest Node.js makes it the recommended way of importing builtin modules by using it in all the examples in the documentation. A lot of people are starting to move to ESM, so now would be a good time for people to switch to thenode:protocol too.Personally, I plan to switch all my packages to use the
node:protocol. We have also made an ESLint rule for it.The text was updated successfully, but these errors were encountered: