NPM Package Downloader
Project description
Download packages from NPM for private npm servers such as verdaccio and sinopia
Python 3.5+ only
Installation
Install using pip:
$ pip install npmdownloader
Usage
Downloading using the CLI:
$ python -m npmdownloader -f [PACKAGE_FILE_LIST] -o [DOWNLOAD_DIR] -c [NUM_OF_WORKER_PROCESSES]
Downloading a package using code:
from npmdownloader import NpmPackageDownloader
downloader = NpmPackageDownloader('out_dir')
# Download a package and its depedencies as tarballs
# if a package tarball already exists, the download will be skipped
downloader.download('react', version='15.4.1')
Downloading multiple packages using code:
from npmdownloader import MultiPackageDownloader
downloader = MultiPackageDownloader('packages_list.txt', 'out_dir', workers_count=4)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
npmdownloader-1.2.1.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for npmdownloader-1.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8ae42e8344d8dcb83b02f6e4c9970a34c89ab00d01dd7726e89649df81f2c2c |
|
MD5 | d70ecf80395584634727963d89c4d717 |
|
BLAKE2b-256 | 9a1b41a87690819515239324bd975d02757ad426ec262a90b24e0356574fcff3 |