A quick dirty rework of proxy-registry to fetch packages from multiple registries.
$ npx github:flinn/proxy-multi-registries
Using registries: https://registry.npmjs.com/
Listening on: http://localhost:22000
To use: npm config set registry http://localhost:22000
^C to close server
Options:
--help, -h show help [boolean]
--version, -v show version number [boolean]
--address, -a the address to bind to [string] [default: "localhost"]
--port, -p the port to listen on [number] [default: 22000]
--registries, -r uplink registries
[array] [default: ["https://registry.npmjs.com/"]]
--log log requests [boolean] [default: true]
- Packuments merge strategy is far from perfect.
- Validate URL param for robustness