Back to list
fohte

ni

by fohte

My configuration files for Neovim, Zsh, Tmux and so on

1🍴 0📅 Jan 24, 2026

SKILL.md


name: ni description: Use ni (@antfu/ni) for package manager operations. Use this skill when installing dependencies, running scripts, or executing packages in JavaScript/TypeScript projects.

ni - Package Manager Agnostic Commands

JavaScript/TypeScript プロジェクトでパッケージマネージャー操作を行う際は、npm, yarn, pnpm, bun などを直接使用せず、@antfu/ni のコマンドを使用すること。

ni はプロジェクトの lockfile を自動検出し、適切なパッケージマネージャーコマンドに変換する。

コマンド対応表

ni コマンド用途npm 相当
ni依存関係のインストールnpm install
ni <pkg>パッケージ追加npm install <pkg>
ni -D <pkg>devDependencies に追加npm install -D <pkg>
nr <script>スクリプト実行npm run <script>
nlx <pkg>パッケージ実行npx <pkg>
nu依存関係の更新npm update
nun <pkg>パッケージ削除npm uninstall <pkg>
nciクリーンインストールnpm ci

使用例

# 依存関係をインストール
ni

# パッケージを追加
ni axios

# devDependencies に追加
ni -D typescript @types/node

# スクリプト実行
nr build
nr test
nr lint

# npx 相当
nlx eslint --fix .
nlx prettier --write .

# パッケージ削除
nun lodash

# クリーンインストール
nci

注意事項

  • ni は mise でグローバルインストール済み (config/mise/home-config.toml)
  • lockfile が存在しないプロジェクトでは、ni はデフォルトで npm を使用する
  • nr でスクリプトを実行する際、引数は -- なしでそのまま渡せる

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon