https://github.com/denrox/verdaccio-populate-cache
Script which populates cache for verdaccio npm proxy by installing top popular packages
https://github.com/denrox/verdaccio-populate-cache
npm verdaccio
Last synced: 10 months ago
JSON representation
Script which populates cache for verdaccio npm proxy by installing top popular packages
- Host: GitHub
- URL: https://github.com/denrox/verdaccio-populate-cache
- Owner: Denrox
- Created: 2024-03-18T20:54:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T15:08:25.000Z (over 2 years ago)
- Last Synced: 2025-01-02T17:25:54.552Z (over 1 year ago)
- Topics: npm, verdaccio
- Language: JavaScript
- Homepage:
- Size: 1.09 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Verdaccio Populate Cache
Script which populates cache for verdaccio npm proxy by installing top popular packages.
This script attempts to install last versions of every npm package from file top-npm-packages.json
## How to run
* Run "npm config set registry {your private registry url}"
* Run "node index.js --count=100 --versions=10 --sleep=1"
## Parameters
* "--count={c}" - count of top packages to install
* "--versions={v}" - number of most recent versions to install for every package
* "--sleep={s}" - timeout in seconds after every
* "--start={s}" - index of package to start from
## Packages which will not be cached
This script will cache only those versions of packages which are supported by node version installed on the machine from which you run it.
## Requirements
* node >= v16.16.0
* npm >= 6.14