DEV Community

netsi1964 🙏🏻
netsi1964 🙏🏻

Posted on

Import npm package from skypack.dev

The domain of front-end development on the web is moving toward a place where you can pick-and-use standard components reusing modules, components and functionality in an easy way. NPM works very well for node.js "backend" javascript development, but pulling NPM packages into frontend can be hard.

Skypack.dev tries to fix this problem serving "front-end ready" NPM packages. This is an example where I use one import to pull in a funny package "canvas-confetti" which is just funny :-)

Top comments (1)

Collapse
 
yoursunny profile image
Junxiao Shi

I tried with my NDNts packages and the output looks correct. However, Skypack can only recognize the version on NPM; there's no way to direct it to use my nightly builds distributed as tarballs on an HTTPS server.