ni
« Back to VersTracker
Description:
Selects the right Node package manager based on lockfiles
Type: Formula  |  Latest Version: 28.0.0@0  |  Tracked Since: Dec 24, 2025
Links: Homepage  |  GitHub  |  formulae.brew.sh
Stars: 7,876  |  Forks: 255  |  Language: TypeScript  |  Category: Developer tools
Tags: nodejs package-manager developer-tools productivity javascript typescript
Install: brew install ni
About:
ni is a smart command-line tool that automatically detects and uses the correct Node.js package manager (npm, yarn, pnpm, bun) based on the lockfile present in a project. It provides a unified interface for common operations like install, run, and upgrade, abstracting away the specific package manager's syntax. Its main value is simplifying workflows in multi-package-manager environments and reducing context switching for developers.
Key Features:
  • Automatic package manager detection via lockfiles
  • Unified command syntax (ni, nr, nx) for install, run, and upgrade
  • Supports npm, yarn, pnpm, and bun
  • Reduces toolchain-specific command memorization
  • Enables consistent scripts across projects with different managers
Use Cases:
  • Simplifying developer onboarding in teams using different package managers
  • Writing cross-compatible project scripts and documentation
  • Quickly executing commands in unfamiliar projects without checking the lockfile
Alternatives:
  • npx – Runs packages directly but does not unify install/run commands or auto-select a package manager.
  • manual usage – Directly using npm/yarn/pnpm/bun commands requires knowing and specifying the correct manager for each project.
Version History
Detected Version Rev Change Commit
Dec 24, 2025 12:54pm 28.0.0 0 VERSION_BUMP 1ff0f825
Oct 26, 2025 8:09am 0 VERSION_BUMP ce6f323f
Oct 19, 2025 11:16pm 0 VERSION_BUMP 434e8174
Oct 16, 2025 11:10pm 0 VERSION_BUMP 3e785d32