Skip to content

Downloads all of the node_modules based on a package-lock.json file

License

Notifications You must be signed in to change notification settings

zoharyosef/node-tgz-downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI 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

About

Downloads all of the node_modules based on a package-lock.json file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%