macOS
brew install nilocal Homebrew formula metadata
brew / rank 2745
Selects the right Node package manager based on lockfiles. Version 30.6.0 via Homebrew; verified 2026-09-17. Also installable with nix: nix profile install nixpkgs#ni.
install
brew install nilocal Homebrew formula metadata
nix profile install nixpkgs#ninixpkgs package indexes · pkgs/by-name/ni/ni/package.nix · source: api.github.com
sudo apt install ndDebian stable package indexes · nd · source: deb.debian.org
overview
Selects the right Node package manager based on lockfiles
history
`ni` is Anthony Fu's JavaScript package-manager dispatcher: one set of short commands that detects whether a project uses npm, Yarn, pnpm, Bun, or Deno and runs the matching package-manager command.
The npm registry metadata for `@antfu/ni` shows the package created on November 5, 2020. The project later moved under the `antfu-collective` GitHub organization while keeping the author ecosystem around Anthony Fu's JavaScript tooling.
The README documents the core idea as lockfile and package metadata detection. It maps `ni`, `nr`, `nlx`, `nup`, `nun`, `nci`, `nd`, and `na` onto equivalent npm, Yarn, pnpm, Bun, and Deno operations, and uses the separate `package-manager-detector` package for detection.
The tool became a small package-nerd convenience in the Node ecosystem because frontend and monorepo developers often switch between repositories with different lockfiles. Homebrew analytics on July 1, 2026 reported 1,661 install-on-request events over 365 days, and the npm package was modified as version 30.2.0 on June 25, 2026.
The ecosystem signal is not that `ni` owns dependency installation, but that it standardizes muscle memory. Its README includes Homebrew and asdf installation paths, auto-install support for missing package managers, and configuration through `~/.nirc` or environment variables.
Practical usage is intentionally tiny: run `ni` to install dependencies, `nr` to run scripts, `nlx` to download and execute a package, `nup` to upgrade, `nun` to uninstall, `nci` for clean/frozen installs, and `na` to invoke the detected package manager itself. The tool detects `yarn.lock`, `pnpm-lock.yaml`, `package-lock.json`, `bun.lock`, `bun.lockb`, `deno.json`, `deno.jsonc`, or the `packageManager` field.
security posture
infrastructure mutation or orchestration signal.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.nircexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
na | cli | global executable | |
nci | cli | global executable | |
nd | cli | global executable | |
ni | cli | global executable | |
nlx | cli | global executable | |
nr | cli | global executable | |
nun | cli | global executable | |
nup | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/antfu-collective/ni
install metadata
| Package key | brew:ni |
|---|---|
| Version | 30.6.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/ni |
| Homepage | https://github.com/antfu-collective/ni |
| Repository | https://github.com/antfu-collective/ni |
| License | MIT |
| Source archive | https://registry.npmjs.org/@antfu/ni/-/ni-30.5.0.tgz |
| Last updated | 2026-09-17T08:46:31Z |
| Pulse | updated |
| Dependencies | node |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ni |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
ni
nix profile install nixpkgs#nind 0.8.2-8.1
small command line interface to WebDAV servers
sudo apt install ndnd 0.8.2-8.1
small command line interface to WebDAV servers
sudo apt install ndsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.