1.0.0-rc2 • Published 7 years ago
download-npm v1.0.0-rc2
download-npm
Download the modules from the NPM registry to HTML5 file system API
Installation
npm install download-npm
Features
- Library to download packages
- Supports scoped packages
Out of the scope
- It can not use the registry defined in your
.npmrc
file
Usage
downloadNpm takes an package name and a path as arguments and returns a promise, a promise that resolves once the package has been downloaded to the folder set in path.
import downloadNpm from 'download-npm'
downloadNpm(
'modulname@version', // for example, express@4.0.0-rc4 or tape@latest etc
'/tmp' // the path to download
).then()