extract-package
Download and extract npm package version
Requires
Node 6+
Install
$ npm install extract-package
Usage
const extractPackage =
Specify a version
Specify where to drop the package
Satisfy major versions
Assuming that the package version are 1.4.5, 1.6.5 and 2.0.0, this example will download the version 1.6.5, which is the latest version that satisfies that major version.