nrs-cli

Crates.ionrs-cli
lib.rsnrs-cli
version0.1.1
created_at2025-06-16 07:34:23.063925+00
updated_at2025-06-17 12:49:42.499716+00
descriptionA CLI written in Rust to manage multiple Node.js registries easily and efficiently.
homepagehttps://github.com/Dantescur/nrs
repositoryhttps://github.com/Dantescur/nrs
max_upload_size
id1714019
size82,550
Daniel (Dantescur)

documentation

README

nrs - Node.js Registry Switcher ๐Ÿงญ

A CLI written in Rust to manage multiple Node.js registries easily and efficiently.

version license


โœจ Features

  • Switch between registries (npm, yarn, taobao, github, etc.).
  • Add, remove, or edit custom registries.
  • Stores configuration in ~/.nrsrc and modifies ~/.npmrc.
  • Run latency tests to check registry availability.

๐Ÿ“ฆ Instalation

cargo install nrs

Or if you prefer to build yourself

git clone https://github.com/Dantescur/nrs
cd nrs
cargo build --release

๐Ÿงช Usage

nrs ls # List all registries
nrs use npm # Use the "npm" registry
nrs add myreg https://custom.registry.com/ # Add a new registry
nrs remove myreg # Remove a registry
nrs current # Show the current registry
nrs test # Test ping for all listed registries
nrs show # Show the current .npmrc file

๐Ÿง  Autocomplete

Install autocompletition for bash/zsh/fish/elvish and powershell:

nrs complete

๐Ÿ“‚ Archivos

~/.nrsrc: Persistent file config for the cli.

~/.npmrc: The npm config file

License

This project is published under MIT License

Commit count: 11

cargo fmt