DEV Community

Omar Dulaimi
Omar Dulaimi

Posted on

2 1

Prefix-only modules in Nodejs 18

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.

prefix-only nodejs modules

Original post: https://www.linkedin.com/posts/activity-6938930546290909184-yd-b

Top comments (0)

Image of Bright Data

Maintain Seamless Data Collection – No more rotating IPs or server bans.

Avoid detection with our dynamic IP solutions. Perfect for continuous data scraping without interruptions.

Avoid Detection

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay