nrm-lite
v0.3.2
Published
Fast and lightweight NpmRegistryManager, for the minimalists.
Readme
nrm-lite
Fast and lightweight Npm Registry Manager, for the minimalists.
Like dnrm, but in pure Node.js.
Features
- Super lightweight, pure Node.js with NO dependency
- Fast, DO NOT parse the
.npmrcfile - Correct, follow the rules of the
.npmrcfile
Install
# install the `nrml` command globally
npm install -g nrm-lite
# test if it's installed
nrml --help
# examples
nrml ls
nrml use taobao
nrml testIt is well-known that Deno's cold start is faster than Node.js.
Consequently, installing nrm-lite in Deno allows it to perform as quickly as dnrm.
# install `nrml` in deno
deno install -Afgr npm:nrm-lite -n nrml
# test if it's installed
nrml --helpUsage
nrm-lite
Usage:
nrml ls List registries
nrml use <name> Use registry
nrml test [<timeout>] Test registry speed, optional timeout in second (default: 2)
nrml add <name> <url> Add custom registry
nrml del <name> Delete custom registry
nrml rc Open .npmrc file
nrml help Show this help
Global Options:
--local Use local .npmrc file, rather than the global one (default: false)