DEV Community

loading...

Discussion on: A Quick Exploration Into Deno

Collapse
phuctm97 profile image
Minh-Phuc Tran Author

That's definitely the way, there is a lot of CDN supporting this mechanism right now, there are also unpkg, skypack, etc. I personally use Skypack.

And for your concern, it is a very common hurdle among devs when they see a URL being imported, however you think about it correctly, it's exactly what NPM does for you, except you don't have to install NPM and run installation scripts (which is insecure). What NPM does essentially is to download the package somewhere from its API (also a URL) and keep in the node_modules. So, there is really no difference.

Hope it helps!

Collapse
michaelcurrin profile image
Michael

Ah thanks. I knew of unpkg from npm stuff - so it does something like JSPM?

I'll check out skypack

Thread Thread
michaelcurrin profile image
Michael

I see skypack.dev/ even covers deno on their homepage

Thread Thread
phuctm97 profile image
Minh-Phuc Tran Author

Yeah, skypack is pretty dope, but be aware that not all packages are compatible, packages using Node.js specific won't work.