To download source from npm without installing it with JavaScript, we run npm view [package name] dist.tarball
.
For instance, we run
wget $(npm view lodash dist.tarball)
to download the source for the lodash
package without installing it with npm view
and wget
.