ri

A rust version ni.

ni - 💡 Use the right package manager


cargo install rni

npm · yarn · pnpm · bun


ri - install

```bash ri

npm install

yarn install

pnpm install

bun install

```

ri

```bash ri vite

npm i vite

yarn add vite

pnpm add vite

bun add vite

```

```bash ri -f

npm ci

yarn install --frozen-lockfile

pnpm i --frozen-lockfile

bun install --no-save

```

ri r - run

```bash ri 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

```bash ri r

interactively select the script to run

supports https://www.npmjs.com/package/npm-scripts-info convention

```

ri r

ri un - uninstall

```bash ri un webpack

npm uninstall webpack

yarn remove webpack

pnpm remove webpack

bun remove webpack

```

Other useful commands

clean your workspace

clone a repo

you don't need to paste the url, just press enter

full command: ri cl <url>

git push

git pull

git log

bash git log --graph --oneline --decorate

get package info

Open the browser to the package's repository


How?

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.

License

MIT License © 2022-Present JiatLn