`node:fs`、`node:path` 等模块是什么?
What are the `node:fs`, `node:path` etc. modules?
最近,在使用 linter 时,我发现一些内置包的名称以 node:
开头。我搜索了很多,但没有得到任何有用的信息。 node:module
语法是什么?
Core modules can also be identified using the node: prefix, in which case it bypasses the require cache. For instance, require('node:http') will always return the built in HTTP module, even if there is require.cache entry by that name.
最近,在使用 linter 时,我发现一些内置包的名称以 node:
开头。我搜索了很多,但没有得到任何有用的信息。 node:module
语法是什么?
Core modules can also be identified using the node: prefix, in which case it bypasses the require cache. For instance, require('node:http') will always return the built in HTTP module, even if there is require.cache entry by that name.