You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v16 (and in previous versions through backporting) Node.js supports an alternative way to import built-in modules (like fs) which involves prefixing the module's name with node:. Using this syntax, importing fs looks like this:
importfsfrom'node:fs'
This is functionally equivalent to the following:
importfsfrom'fs'
Hence, it should also link to the same thing: the Node.js documentation page for that module.
What actually happened?
Currently, Octolinker generates a link with the href attribute set to node:process, which results in Chrome trying to open the "URL" process with an application assigned to the node scheme/protocol. That doesn't seem right.
Expected Behavior
Since v16 (and in previous versions through backporting) Node.js supports an alternative way to import built-in modules (like
fs
) which involves prefixing the module's name withnode:
. Using this syntax, importingfs
looks like this:This is functionally equivalent to the following:
Hence, it should also link to the same thing: the Node.js documentation page for that module.
What actually happened?
Currently, Octolinker generates a link with the
href
attribute set tonode:process
, which results in Chrome trying to open the "URL"process
with an application assigned to thenode
scheme/protocol. That doesn't seem right.URL
https://github.com/sindresorhus/globby/blob/43eccf41a800a5dedb3b3fcdf313f7daf5c199ff/index.js#L1
Anything else we should know?
No response
The text was updated successfully, but these errors were encountered: