rni

A rust version ni.

ni - 💡 Use the right package manager


cargo install rni

npm · yarn · pnpm · bun


rni - install

```bash rni

npm install

yarn install

pnpm install

bun install

```

```bash rni vite

npm i vite

yarn add vite

pnpm add vite

bun add vite

```

```bash rni -f

npm ci

yarn install --frozen-lockfile

pnpm i --frozen-lockfile

bun install --no-save

```

rni r - run

```bash rni r dev

npm run dev

yarn run dev

pnpm run dev

bun run dev

```

```bash rni r

interactively select the script to run

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

```

rni r

rni un - uninstall

```bash rni un webpack

npm uninstall webpack

yarn remove webpack

pnpm remove webpack

bun remove webpack

```


How?

rni 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