Replies: 1 comment
-
The packages available on NPM, JSR and Deno Land are the ones made available by their authors. In today's age you should look for packages on JSR first. If not there then fall back to NPM. Deno Land only has packages that were made with Deno in mind or made compatible with Deno, so you might find some older packages on Deno Land but not JSR or NPM. The purpose of JSR is to be a modern package registry for JavaScript. It won't have a package if the author of said package doesn't choose to publish on JSR. JSR is still relatively new, and Deno are more focusing their attention around JSR as it allows them to deduplicate dependencies between versions. |
Beta Was this translation helpful? Give feedback.
-
As far as I know there are 4 ways of import module in Deno project:
And I guess the priority order would be just like how I list them above? I mean deno official recommend using deno.land rather than esm.sh, esm.sh would be a better choice than jsr.
Suppose I was right, here is the confusing part when I try to install Hono and its CORS middleware.
This is the way show on official site about how to introduce on deno.land
But I cannot find the module on esm.sh:
https://esm.sh/[email protected]/middleware
Beta Was this translation helpful? Give feedback.
All reactions