download-npm

1.0.0-rc2 • Public • Published

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()

Package Sidebar

Install

npm i download-npm

Weekly Downloads

1

Version

1.0.0-rc2

License

MIT

Last publish

Collaborators

  • jlobo