macOS
brew install nilocal Homebrew formula metadata
brew / rank 2969
Selects the right Node package manager based on lockfiles. Version 30.3.0 via Homebrew; verified 2026-07-23. 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.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
na | executable | indexed executable | Discovered from the local executable index. |
nci | executable | indexed executable | Discovered from the local executable index. |
nd | executable | indexed executable | Discovered from the local executable index. |
ni | executable | indexed executable | Discovered from the local executable index. |
nlx | executable | indexed executable | Discovered from the local executable index. |
nr | executable | indexed executable | Discovered from the local executable index. |
nun | executable | indexed executable | Discovered from the local executable index. |
nup | executable | indexed executable | Discovered from the local executable index. |
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.
install metadata
| Package key | brew:ni |
|---|---|
| Version | 30.3.0 |
| Package manager | Homebrew |
| Homepage | https://github.com/antfu-collective/ni |
| Last updated | 2026-07-23T06:02:53Z |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
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.