Interoperating with Node.js and npm
There are currently two ways to do this:
We recommend npm specifiers, but they are a new feature, and although stabilized, they are still a work in progress. If you run into issues, you can always fall back to using a CDN.
Some other scenarios you may run into covered in this chapter:
- If you are trying to use your own or private code that was written for Node,
std/nodemodules of the Deno standard library to "polyfill" the built-in modules of Node.
- If you want to use "bare specifiers" (specifiers without an absolute or relative path to them), you can use import maps to map the bare specifiers to packages in Deno without needing to use a package manager.