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.1.0.tar.gz
(5.2 kB
view details)
File details
Details for the file npmdownloader-1.1.0.tar.gz
.
File metadata
- Download URL: npmdownloader-1.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1742fa80a6f9ea6644bc87f43b48d3afb0e4e1c9ef34a934b036fe0d7897670 |
|
MD5 | c06a131988574db71a5a494166f87e9c |
|
BLAKE2b-256 | 213d23e45e755b100027086a90599ada40bf9aa27b7e7e84f54f9785f648111f |