All Projects β†’ YunYouJun β†’ nnrm

YunYouJun / nnrm

Licence: MIT License
πŸ”§ New nrm (NPM registry manager). Use smaller dependencies.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to nnrm

registry
TLD Management Software
Stars: ✭ 32 (-41.82%)
Mutual labels:  registry
qucli
Manage repositories in Quay.io
Stars: ✭ 29 (-47.27%)
Mutual labels:  registry
inspr
Inspr is an agnostic application mesh for simpler, faster, and securer development of distributed applications (dApps).
Stars: ✭ 49 (-10.91%)
Mutual labels:  registry
DNSSuffix
A set of PowerShell tools for managing the computer's primary DNS suffix.
Stars: ✭ 19 (-65.45%)
Mutual labels:  registry
Windows10Tools
Tools for Windows 10
Stars: ✭ 45 (-18.18%)
Mutual labels:  registry
DesktopAppLink
Creates hyperlinks to call desktop applications from
Stars: ✭ 15 (-72.73%)
Mutual labels:  registry
iscn-specs
International Standard Content Number - decentralized content registry
Stars: ✭ 16 (-70.91%)
Mutual labels:  registry
WindowsRegistry
Windows Registry Tweaks & Hacks
Stars: ✭ 31 (-43.64%)
Mutual labels:  registry
openshift-disconnected-operators
No description or website provided.
Stars: ✭ 52 (-5.45%)
Mutual labels:  registry
iox-registry
No description or website provided.
Stars: ✭ 23 (-58.18%)
Mutual labels:  registry
sregistry
server for storage and management of singularity images
Stars: ✭ 96 (+74.55%)
Mutual labels:  registry
schema-registry
πŸ“™ json & avro http schema registry backed by Kafka
Stars: ✭ 23 (-58.18%)
Mutual labels:  registry
sack.vfs
Node addon which adds a virtual file system interface; websockets; json(6) parsing; sql support(sqlite,odbc); javascript sched_yield; ssl certificate generation; more...
Stars: ✭ 29 (-47.27%)
Mutual labels:  registry
cli
Autocode CLI and standard library tooling
Stars: ✭ 3,791 (+6792.73%)
Mutual labels:  registry
cleanreg
A small tool to clean up Docker Registries (v2).
Stars: ✭ 48 (-12.73%)
Mutual labels:  registry
oras
ORAS CLI
Stars: ✭ 672 (+1121.82%)
Mutual labels:  registry
modelforge
Python library to share machine learning models easily and reliably.
Stars: ✭ 18 (-67.27%)
Mutual labels:  registry
unit-converter
Convert standard units from one to another with this easy to use, lightweight package
Stars: ✭ 104 (+89.09%)
Mutual labels:  registry
singularityhub.github.io
Container tools for scientific computing! Docs at https://singularityhub.github.io/singularityhub-docs
Stars: ✭ 68 (+23.64%)
Mutual labels:  registry
registry
Joomla Framework Registry Package
Stars: ✭ 16 (-70.91%)
Mutual labels:  registry

nnrm

English Docs | δΈ­ζ–‡ζ–‡ζ‘£

npm GitHub code size in bytes node-current npm Libraries.io dependency status for latest release Snyk Vulnerabilities for npm scoped package

nnrm = new nrm

New npm registry manager.

Use smaller dependencies than nrm.

η”±ζ₯

Install

# install
npm install -g nnrm
yarn global add nnrm
pnpm add -g nnrm

Usage

These commands are used to toggle the corresponding registry.

  • nnrm & nrm: npm
  • nyrm & yrm: yarn
  • prm: pnpm
nnrm ls
# nrm ls
# yrm ls
# prm ls

nnrm use taobao
# nrm use taobao
# yrm use taobao
# prm use taobao

# set `.npmrc` for local
nrm use taobao -l

nnrm test
# nrm test
# yrm test
# prm test
  • nnrm -h: show help message
Usage:
  $ nrm <command> [options]

Commands:
  ls                           List all the registries
  use [registry]               Change registry
  test                         Show response time for all registries
  add <registry> <url> [home]  Add a custom registry
  remove <registry>            Remove a custom registry

Options:
  -h, --help     Display this message
  -v, --version  Display version number
Usage:
  $ nrm use [registry]

Options:
  -l, --local    set '.npmrc' for local

Add/Remove custom registry

nnrm add example https://xxx.com
nnrm remove example

It will be recorded in your ~/.nnrm/registries.json.

Default Registires

Features

  • Support npm/yarn/pnpm (the registry of yarn and npm/pnpm is independent of each other)
  • Smaller Dependencies
    • Use node-fetch instead of request for speed test
    • Use execa instead of npm
    • Use cac instead of commander
  • Asynchronously display source speed test results
  • Colorful console info
  • Automatically display the registry list after each modification, and mark the current registry

FAQ

Why new nrm?

nrm relies on the deprecated request with a larger package body, the npm package, and some other npm dependencies.

So installing nrm is also a very slow thing.

Why cac?

minimist vs commander vs cac | npm trends

minimist is only 1.3 KB, but it is just a parameter parsing tool.

We need a tool that can automatically generate help information.

commander and cac can do it.

cac(3.6KB) is smaller than commander(6.8KB). And i love C.C.

Why node-fetch?

node-fetch vs axios vs request

node-fetch is only 289B!

axios(4.6KB) is good, but node-fetch is smaller.

request(184.8KB) has been deprecated and it is so big.

Why execa?

execa vs shelljs

execa is only 8.4KB.

Install package npm to use npm.config.set('registry', 'xxx') is expensive.

We just need use local command: npm config set registry xxx.

Error when use Windows?

If you are a Windows user, you may want to make sure that you use a generic command line like bash instead of CMD.

nrm conflicts with other commands

nrm(command) is a command of nrm(package). You should uninstall nrm(package) to use nrm(command) with nnrm(package). Or you can use nnrm(command).

nrm(command) may conflict with nrm or ni. You can uninstall them or just use command nnrm without uninstalling them.

Ref

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].