I've always used require("<something>")
such as require("http")
, but recently I've seen in a Node.Js tutorial on YouTube that the guy in the videos initially started with require("<something>")
only to see in his later videos that he uses require("node:<something>")
instead.
I've looked through the Node.JS documentation every now and then for some other bits on information and either Node.Js does not use require("node:<something>")
everywhere, or I have been extremely oblivious to that node:
.
I've ran a few Google searches on node:
and tried to look on Node.Js' documentation about this specific thing, but didn't really find much.
From my tests, I could not find a difference between the two and I do tend to believe that there isn't any, but thought I'd ask here just to be safe.