How can I download the source code of a package from npm without actually installing it (i.e. without using npm install thepackage)?
npm install thepackage
npm pack XXX is the quickest to type and it'll download an archive.
npm pack XXX
Alternatively:
npm v XXX dist.tarball | xargs curl | tar -xz
this command will also:
package