npm-registry-download

1.0.6 • Public • Published

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)

Package Sidebar

Install

npm i npm-registry-download

Weekly Downloads

2

Version

1.0.6

License

MIT

Last publish

Collaborators

  • austinkelleher