Crates.io | rni |
lib.rs | rni |
version | 0.3.5 |
source | src |
created_at | 2022-10-28 03:07:57.716843 |
updated_at | 2023-05-11 06:09:10.4767 |
description | a rust version ni |
homepage | https://github.com/JiatLn/ri |
repository | https://github.com/JiatLn/ri |
max_upload_size | |
id | 699985 |
size | 135,513 |
A rust version ni.
ni - 💡 Use the right package manager
cargo install rni
ri
- installri
# npm install
# yarn install
# pnpm install
# bun install
ri vite
# npm i vite
# yarn add vite
# pnpm add vite
# bun add vite
ri -f
# npm ci
# yarn install --frozen-lockfile
# pnpm i --frozen-lockfile
# bun install --no-save
ri r
- runri r dev
# npm run dev
# yarn run dev
# pnpm run dev
# bun run dev
Specially, you can use ri rd
to run scripts <agent> run dev
ri r
# interactively select the script to run
# supports https://www.npmjs.com/package/npm-scripts-info convention
ri un
- uninstallri un webpack
# npm uninstall webpack
# yarn remove webpack
# pnpm remove webpack
# bun remove webpack
ri rm
to remove node_modules/**ri rl
to remove lockfile of current agent, like yarn.lock
/ pnpm-lock.yaml
/ package-lock.json
/ bun.lockb
you don't need to paste the url, just press enter
step 1: copy the repo url
step 2: ri cl
full command: ri cl <url>
ri ps
- git pushri pl
- git pullri log
git log --graph --oneline --decorate
ri info
- get package info of current directoryri repo
- open the browser to the package's repositoryri assumes that you work with lockfiles (and you should)
Before it runs, it will detect your yarn.lock
/ pnpm-lock.yaml
/ package-lock.json
/ bun.lockb
to know current package manager (or packageManager
field in your packages.json if specified), and runs the corresponding commands.