Nodejs 18 comes with the π»πΌπ±π²: prefix to import modules from the core modules.
Conventional modules like π³π and πΌπ, for example, would work as usual without the prefix. Though a new core module has emerged, where using the π»πΌπ±π²: prefix is mandatory.
This prefix allows the node team to release new core modules without any name conflicts with existing modules in the community.
It works with all core node modules, so using it with userland imports won't work.
The π»πΌπ±π²:ππ²ππ module is still experimental, so there might be some changes coming its way, including the name.
Original post: https://www.linkedin.com/posts/activity-6938930546290909184-yd-b
Top comments (0)