Crates.io | rust-nrm |
lib.rs | rust-nrm |
version | |
source | src |
created_at | 2024-11-22 09:27:03.710201 |
updated_at | 2024-12-04 03:10:32.849913 |
description | A Rust-based NPM Registry Manager for efficiently managing and switching between npm registries |
homepage | |
repository | https://github.com/BQXBQX/rnrm |
max_upload_size | |
id | 1457212 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A fast and efficient NPM registry manager written in Rust 🦀
cargo install rust-nrm
git clone https://github.com/BQXBQX/rnrm.git
cd rnrm
cargo install --path .
# List all registries
rust-nrm ls
# Switch to a registry
rust-nrm use npm
rust-nrm use taobao
# Use registry for current project only
rust-nrm use npm --local
# Add a custom registry
rust-nrm add custom https://custom.registry.com/
# Remove a registry
rust-nrm rm custom
# Test registry speeds
rust-nrm test
Command | nrm (Min, Mean, Max) | rnrm (Min, Mean, Max) | Performance Change (%) |
---|---|---|---|
ls |
106.27 ms, 108.57 ms, 110.87 ms | 136.21 µs, 137.92 µs, 139.85 µs | -99.87% (rnrm is faster) |
use |
102.87 ms, 105.46 ms, 108.01 ms | 1.9379 ms, 2.0982 ms, 2.2669 ms | -98.02% (rnrm is faster) |
add |
106.83 ms, 108.76 ms, 110.57 ms | 2.4322 ms, 2.6138 ms, 2.7835 ms | -97.60% (rnrm is faster) |
remove |
95.288 ms, 97.447 ms, 99.657 ms | 369.44 µs, 379.37 µs, 390.45 µs | -99.61% (rnrm is faster) |
rnrm
!!!Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.