I have an NPM package published in its github repository, here.
I would like to download the dist/ directory only, so that I can link its files locally from an HTML file. Moreover, I'd like to do so with packages published on NPM registries too.
What's the best way to do that? Is there any npm command supporting it? Or should I use git clone?
In the latter case, what if the package is on an NPM registry? So far, I could only imagine: npm pack <target> and then tar -x, but that seems cumbersome.