Skip to content

Downloads all of the node_modules tgz files based on a package-lock.json / pacakge.json file

License

Notifications You must be signed in to change notification settings

Meir017/node-tgz-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js CI NPM Version NPM Downloads

node-tgz-downloader

Downloads all of the tarballs based on one of the following:

  • local package-lock.json file
  • url to a package-lock.json
  • name of package
  • local package.json file
  • url to a package.json
  • search keyword

install

npm install node-tgz-downloader -g

usage

From Code:

const downloader = require('node-tgz-downloader');

downloader.downloadFromPackageLock('path/to/package-lock');

From Command Line:

package-lock.json

from local file:

download-tgz package-lock path/to/package-lock.json

from url:

download-tgz package-lock https://raw.githubusercontent.com/Meir017/node-tgz-downloader/master/package-lock.json

package name

download-tgz package @angular/cli --devDependencies --peerDependencies

package.json

from local file:

download-tgz package-json path/to/package.json

from url:

download-tgz package-json https://raw.githubusercontent.com/Meir017/node-tgz-downloader/master/package.json

search keyword

downloads the packages returned from an npm search query (https://registry.npmjs.org/-/v1/search?)

download-tgz search tgz

HttpsAgent Configuration

The tool supports the https_proxy environment variable. Do not forget to specify protocol and port.

export https_proxy='https://proxy_url:port'

About

Downloads all of the node_modules tgz files based on a package-lock.json / pacakge.json file

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published