@shilong/nrm

0.2.0 • Public • Published

@shilong/nrm

This is a simple npm registry manager cli tool.

min package size downloads vulnerabilities

Install

$ npm i @shilong/nrm -g

## check if install successful
$ slnrm --help

Usage

# show available registry
$ slnrm ls
   * npm         https://registry.npmjs.org/
     yarn        https://registry.yarnpkg.com/
     taobao      https://registry.npmmirror.com/
     tencent     https://mirrors.cloud.tencent.com/npm/
# use one registry
$ slnrm use taobao
     npm         https://registry.npmjs.org/
     yarn        https://registry.yarnpkg.com/
   * taobao      https://registry.npmmirror.com/
     tencent     https://mirrors.cloud.tencent.com/npm/

Difference

# install with npm registry

$ npm i --verbose
...
npm http fetch GET 200 https://registry.npmjs.org/@types%2fnode 3665ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@types%2freact 559ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@types%2freact-dom 377ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/eslint 775ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/eslint-config-next 1183ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/typescript 3514ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/next 4558ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@opentelemetry%2fapi 314ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/fibers 281ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/node-sass 324ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/react 1057ms (cache miss)
...

# install with taobao registry

$ npm i --verbose
...
npm http fetch GET 200 https://registry.npmmirror.com/@types%2fnode 444ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/@types%2freact 125ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/@types%2freact-dom 77ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/eslint 109ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/eslint-config-next 376ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/typescript 462ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/next 520ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/@opentelemetry%2fapi 54ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/fibers 42ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/node-sass 42ms (cache miss)
npm http fetch GET 200 https://registry.npmmirror.com/react 270ms (cache miss)
...

Readme

Keywords

Package Sidebar

Install

npm i @shilong/nrm

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

6.81 kB

Total Files

5

Last publish

Collaborators

  • onlylonger