node-tgz-downloader
v3.15.0
Published
Downloads all of the node_modules based on a package-lock.json file
Downloads
188
Maintainers
Readme
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'