1.0.6 • Published 7 years ago

npm-registry-download v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

npm-registry-download

Download an npm registry package tar file directly

Install

npm install npm-registry-download --save

Usage:

Download a package to the current directory and decompress the tar:

const registryDownload = require('npm-registry-download');

registryDownload('express');

Download a package to a specific directory and decompress the tar:

const registryDownload = require('npm-registry-download');

registryDownload('express', {
  dir: '/Users/me/Desktop'
});

Options

Available options:

const registryDownload = require('npm-registry-download');

registryDownload('express', {
  ...
});
  • tag {String} - A version tag to download (defaults to latest)
  • version {String} - The version to download from npm
  • dir {String} - Directory to download the file to (default to current directory)
  • untar {Boolean} - Whether the registry file should be untarred or not (defaults to true)
1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago