2.1.7 • Published 1 year ago

npm-registry-mirror v2.1.7

Weekly downloads
81
License
ISC
Repository
github
Last release
1 year ago

Build Status Coverage Status Version License Code style

Motivation

npm-registry-mirror is a utility for mirroring a subset of npm packages from another npm registry. It syncs recursively all the required dependencies and writes them to the local filesystem so that a simple webserver can behave like a read-only registry.

This module was designed a a drop-in replacement for the no longer maintened "npm-mirror" module.

Usage

npm install -g npm-registry-mirror

# Put some packages.json (e.g. rename & timestamp them) in /some/path/to/manifests/

npm-mirror \
--registry_url=http://myserver.com/npm/       \
--manifest_directory=/some/path/to/manifests/ \
--package_directory=/path/to/local/cache/     \

Http server

export DEBUG=*,-send,-express:*
cnyks . [config_path] --ir://start

# force curl no buffer
curl -X POST http://127.0.0.1:8080/process
cat /mnt/r/package.json | curl -X PUT --data-binary @- http://127.0.0.1:8080/feed

Tests & dependencies

npm-mirror relies on a very few but powerfull modules, with 100% coverage & test. All good friend of mine.

Credits

Keywords / shout box

npm, npm-mirror, registry-mirror, registry, async, "Let's have a beer and talk in Paris"

2.1.6

2 years ago

2.1.7

1 year ago

2.1.4

2 years ago

2.1.5

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.3

2 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.1

8 years ago