@bokovza/package-downloader - NPM Package Downloader
❤️ by Bar Yochai Bokovza (Buy me a ☕️ )
Made with Main Features
- You can download multiple packages with dependencies
- The resolver will merge the entire dependency tree, for reducing the amount of packages to download
-
The resolver uses
pacote
, which means that the same resolver of npm, used in this package downloader - Skipping downloaded packages, in case of running again the package downloader with different packages on the same output directory
Usage
Install
$ npm i -g @bokovza/package-downloader
Run
$ packageDownloader -p "react react-router-dom" -o "whiten"
This example will download packages react
and react-router-dom
with all of the dependencies to ./whiten
directory.
Options
Mandatory
-p
or --packages
Packages - - List of packages divided by spaces
- Must be inside
"___"
- Write the name of the packages the same way you write when you run the command
npm install
-o
or --output
Output - - Target Directory of the downloading
- Must to write the name of the directory (even if it not exists) after the flag.
Optional
-d
or --devDeps
Dev Dependencies - - Boolean flag
- If
true
, also download dev dependencies
-e
or --peerDeps
Peer Dependencies - - Boolean flag
- If
true
, also download peer dependencies
-l
or --limit
Throttle Limit - - Positive Number flag
- Sets the amount of parallel downloads to run
- Default: 10