pkg.soopen package index

brew / 排名 2969

使用 Homebrew, Nix, apt 安装 ni

查看 ni 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ni

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#ni

nixpkgs package indexes · pkgs/by-name/ni/ni/package.nix · 来源: api.github.com

Debian apt已验证 · 92%
sudo apt install nd

Debian stable package indexes · nd · 来源: deb.debian.org

概览

软件包摘要

Selects the right Node package manager based on lockfiles

命令和别名

  • na
  • nci
  • nd
  • ni
  • nlx
  • nr
  • nun
  • nup

历史

项目历史与用法

`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.

时间线

  • {'date': '2020-11-05', 'event': '`@antfu/ni` npm package created.'}
  • {'date': '2026-06-25', 'event': 'npm metadata listed version 30.2.0 as the latest package version.'}

Related projects

  • npm
  • Yarn
  • pnpm
  • Bun
  • Deno
  • package-manager-detector

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:package manager

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
na可执行文件已索引可执行文件从本地可执行文件索引发现。
nci可执行文件已索引可执行文件从本地可执行文件索引发现。
nd可执行文件已索引可执行文件从本地可执行文件索引发现。
ni可执行文件已索引可执行文件从本地可执行文件索引发现。
nlx可执行文件已索引可执行文件从本地可执行文件索引发现。
nr可执行文件已索引可执行文件从本地可执行文件索引发现。
nun可执行文件已索引可执行文件从本地可执行文件索引发现。
nup可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本30.3.0
管理器更新时间2026-07-23
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:ni
版本30.3.0
软件包管理器Homebrew
主页https://github.com/antfu-collective/ni
最后更新2026-07-23T06:02:53Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

ni

nix profile install nixpkgs#ni
  • normalized package name match
  • 匹配方式:Ni
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ni/ni/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Debian apt92%

nd 0.8.2-8.1

small command line interface to WebDAV servers

http://gohome.org/nd/

sudo apt install nd
  • Section: net
  • Architecture: amd64
  • 3 依赖
  • installed executable or alias match
  • 匹配方式:Nd
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt92%

nd 0.8.2-8.1

small command line interface to WebDAV servers

http://gohome.org/nd/

sudo apt install nd
  • Section: universe/net
  • Architecture: amd64
  • 3 依赖
  • installed executable or alias match
  • 匹配方式:Nd
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/ni.yml

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation