pkg.soopen package index

brew / 排名 2745

使用 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

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

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

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.nirc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nacli全局可执行文件
ncicli全局可执行文件
ndcli全局可执行文件
nicli全局可执行文件
nlxcli全局可执行文件
nrcli全局可执行文件
nuncli全局可执行文件
nupcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-09-19
管理器版本30.6.0
管理器更新时间2026-09-17
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/antfu-collective/ni

安装元数据

软件包元数据

软件包键brew:ni
版本30.6.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ni
主页https://github.com/antfu-collective/ni
仓库https://github.com/antfu-collective/ni
许可证MIT
源码归档https://registry.npmjs.org/@antfu/ni/-/ni-30.5.0.tgz
最后更新2026-09-17T08:46:31Z
Pulseupdated
依赖node
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameni
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 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 configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation