RepositoryTypeScript
made-in-common

made-in-common/ni

💡 Use the right package manager

8.3kstars
280forks
20issues
6views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: pnpm

#1 Repository of the week

1
TINIX TRENDING·Topic: yarn

#1 Repository of the week

2
TINIX TRENDING·Topic: npm

#2 Repository of the week

🧰 ni keeps package manager commands straight

Wrong package manager? ni fixes that.

ni is a TypeScript command-line tool from the Antfu collective that runs the right install, run, execute, or upgrade command for the package manager your project uses. It supports npm, yarn, pnpm, bun, deno, nub, and aube, and is aimed at developers tired of typing npm i in a yarn project or guessing which flag goes with which manager.

✨ Highlights

  • Smart install: runs npm install, yarn install, pnpm install, and other install commands automatically.
  • Named install: ni vite maps to npm i vite, yarn add vite, pnpm add vite, and similar commands.
  • Dev flag: ni @types/node -D maps to the right -D command for each manager.
  • Frozen lockfile: ni --frozen maps to npm ci, yarn install --frozen-lockfile, pnpm install --frozen-lockfile, and related commands.
  • Run scripts: nr dev --port=3000 maps to the correct run command for the detected package manager.
  • Execute packages: nlx vitest maps to npx, yarn dlx, pnpm dlx, bunx, and other execution commands.

💡 Why it matters

ni saves context switching and typo-prone manual command translation. Instead of checking whether a project uses npm, Yarn, pnpm, Bun, Deno, or another manager, the tool detects the setup and runs the expected command.

That matters most in mixed environments: monorepos, workspaces, and teams that use more than one package manager. The README shows support for installs, named packages, -D flags, production installs, frozen lockfiles, scripts, interactive package selection, upgrades, shell completions, and catalogs.


#OpenSource #CLI #PackageManager #JavaScript #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
nodejs/corepack

Package manager version manager for Node.js projects

3.9k
Nov 27, 2026
RepositoryJavaScript
yarnpkg/yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry

41.5k
May 12, 2026
RepositoryRust
JamieMason/syncpack

Consistent dependency versions in large JavaScript Monorepos.

2.1k
Nov 22, 2026
RepositoryTypeScript
verdaccio/verdaccio

A lightweight Node.js private proxy registry

18.0k
Nov 29, 2026
RepositoryTypeScript
yarnpkg/berry

📦🐈 Active development trunk for Yarn ⚒

8.1k
Nov 27, 2026
RepositoryTypeScript
react-native-community/cli

The React Native Community CLI — Command line tools to help you build React Native apps

2.9k
Nov 21, 2026
RepositoryTypeScript
lerna-lite/lerna-lite

Subset of Lerna in a much smaller & more modular project. Help manage and publish multiple packages in a monorepo/workspace structure

567
Nov 30, 2026
RepositoryTypeScript
IBM/audit-ci

Audit NPM, Yarn, PNPM, and Bun dependencies in continuous integration environments, preventing integration if vulnerabilities are found at or above a configurable threshold while ignoring allowlisted advisories

298
Nov 16, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026