๐Ÿ’ก Use the right package manager by rust

Related tags

Miscellaneous ni
Overview

n

๐Ÿ’ก Use the right package manager by rust

๐Ÿ’ก Inspired by ni

Why

ni is nice , but ni is based on Node.

it is difficult to collaborate well with node version management tools like fnm and nvm.

Therefore, we need an executable file that does not depend on any environment.

Installation

Using a script (macOS/Linux)

curl -fsSL https://raw.githubusercontent.com/sheinsight/ni/main/install.sh | bash

Use case

install

# Ready โœ…
n i
# npm install
# yarn install
# pnpm install
# Ready โœ…
n ci
# npm ci
# yarn install --frozen-lockfile (Yarn 1)
# pnpm install --frozen-lockfile

add

# Ready โœ…
n add react
# npm add react
# yarn add react
# pnpm add react
# Ready โœ…
n add react -D
# npm add --save-dev react
# yarn add --save-dev react
# pnpm add --save-dev react
# Ready โœ…
n add react -S
# npm add --save react
# yarn add --save react
# pnpm add --save react
# Ready โœ…
n add react -O
# npm add --save-optional react
# yarn add --save-optional react
# pnpm add --save-optional react
# Ready โœ…
n add -g eslint

# npm add --global eslint
# yarn global add eslint (Yarn 1)
# pnpm add --global eslint

run

# Ready โœ…
n r dev
# npm run dev
# yarn run dev
# pnpm run dev
# Ready โŒ
n r dev --port=3000
# npm run dev -- --port=3000
# yarn run dev --port=3000
# pnpm run dev --port=3000
# Ready โŒ
n r
# interactively select the script to run
# supports https://www.npmjs.com/package/npm-scripts-info convention

npx

# Ready โŒ
n x tsx
# npx vitest
# yarn dlx vitest
# pnpm dlx vitest

upgrade

# Ready โŒ
n u
# npm upgrade
# yarn upgrade (Yarn 1)
# pnpm update

uninstall

# Ready โŒ
n un
# npm uninstall webpack
# yarn remove webpack
# pnpm remove webpack
# Ready โŒ
n un -g silent

# npm uninstall -g silent
# yarn global remove silent
# pnpm remove -g silent

How

Unlike ni, n requires you to configure packageManager in package.json.

Because we hope everything is clear.

You might also like...
Solidity-Compiler Version Manager

Solidity Compiler Version Manager

SPWN extension manager.

XTND SPWN extension manager. Important Disclaimer As this will allow any module to run as builtins, with little to no limitations, use of XTND may be

A simple clipboard manager for wayland.

Wpilman A simple clipboard manager for wayland. Installation Just compile it yourself or install the AUR package: paru -S wlipman-git # or yay -S wlip

Wayland clipboard manager that will make you clap ๐Ÿ‘

Clapboard - clipboard manager that makes you clap ๐Ÿ‘ Clapboard is a simple clipboard manager for Wayland, built in Rust. It saves a history of your cl

Easy-to-use optional function arguments for Rust

OptArgs uses const generics to ensure compile-time correctness. I've taken the liberty of expanding and humanizing the macros in the reference examples.

Use explicit container types with Scrypto! Leverage the Rust compiler's type checking to increase security and productivity when developing Radix blueprints.

Scrypto Static Types Use explicit container types with Scrypto! Leverage the Rust compiler's type checking to increase security and productivity when

A high-level Rust crate around the Discord API, aimed to be easy and straight-forward to use.
A high-level Rust crate around the Discord API, aimed to be easy and straight-forward to use.

rs-cord A high-level Rust crate around the Discord API, aimed to be easy and straight-forward to use. Documentation โ€ข Crates.io โ€ข Discord Navigation M

A flexible, simple to use, immutable, clone-efficient String replacement for Rust

flexstr A flexible, simple to use, immutable, clone-efficient String replacement for Rust Overview Rust is great, but it's String type is optimized as

The easiest way to use BotiCord API in Rust
The easiest way to use BotiCord API in Rust

The easiest way to use BotiCord API in Rust ยท Docs Usage [dependencies]

Owner
SHEIN
SHEIN frontend team
SHEIN
A shiny new package manager written in rust explicitly for gemlock/linux and it's distributions

Gem A shiny new package manager written in rust explicitly for gemlock/linux and it's distributions. List of content How to setup Systems Ubuntu Arch

Gemlock 1 Feb 22, 2022
A fast package manager for NodeJS written in Rust.

click A fast package manager for NodeJS written in Rust. How fast? Benchmark of bun vs click clean install: Based on benchmarks done with hyperfine, c

Sam 52 Oct 10, 2023
basic multiple package manager

baka basic multiple package manager Docs Env baka_root_setting Windows: %USERPROFILE%/.baka/config Linux, Mac: $HOME/.baka/config baka_plugins (Just u

null 8 Dec 29, 2021
Novus - A blazingly fast and efficient package manager for windows.

Novus - A blazingly fast and efficient package manager for windows. Why Novus Swift Unlike any other package manager, Novus uses multithreaded downloads

Novus 197 Dec 18, 2022
Wally is a modern package manager for Roblox projects inspired by Cargo

Wally is a package manager for Roblox inspired by Cargo (Rust) and npm (JavaScript). It brings the familiar, community-oriented world of sharing code from other communities into the Roblox ecosystem.

Uplift Games 194 Jan 3, 2023
Plow - The ontology package manager

Plow - Ontology package manager Plow is package management solution for OWL ontologies, with support for specifying dependencies between packages via

Field 33 12 Dec 21, 2022
Rust package for constructing and analyzing phylogenies.

Rust-Phylogeny, a Rust library for phylogenetic trees Currently this library provides three algorithms: UPGMA and Neighbor-Joining for constructing a

Ragnar Groot Koerkamp 1 Nov 18, 2021
DWARF packaging utility, written in Rust, supporting GNU extension and DWARF 5 package formats.

thorin thorin is an DWARF packaging utility for creating DWARF packages (*.dwp files) out of input DWARF objects (*.dwo files; or *.o files with .dwo

David Wood 19 Nov 16, 2022
A little bit fast and modern Ruby version manager written in Rust

A little bit fast and modern Ruby version manager written in Rust Features Pure Rust implementation not using ruby-build Cross-platform support (macOS

Takayuki Maeda 510 Jan 5, 2023
Fast and simple PHP version manager written in rust

[WIP] phpup (PHP-up): Fast and Simple PHP version manager โšก Fast and simple PHP version manager, written in rust Features No requirements for system P

null 27 Dec 25, 2022