A rust version ni.
ni - 💡 Use the right package manager
cargo install rni
ri
# npm install
# yarn install
# pnpm install
# bun installri vite
# npm i vite
# yarn add vite
# pnpm add vite
# bun add viteri -f
# npm ci
# yarn install --frozen-lockfile
# pnpm i --frozen-lockfile
# bun install --no-saveri r dev
# npm run dev
# yarn run dev
# pnpm run dev
# bun run devSpecially, 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 conventionri un webpack
# npm uninstall webpack
# yarn remove webpack
# pnpm remove webpack
# bun remove webpack- use
ri rmto remove node_modules/** - use
ri rlto remove lockfile of current agent, likeyarn.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 push
ri pl- git pull
ri log
git log --graph --oneline --decorateri info- get package info of current directory
ri repo- open the browser to the package's repository
ri 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.

