Skip to content
/ ni.zsh Public
forked from azu/ni.zsh

Alternative `ni` written in zsh

License

Notifications You must be signed in to change notification settings

himanoa/ni.zsh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Alternative ni written in zsh

ni - use the right package manager

You can run npm/yarn/pnpm/bun with same command!

Installation

curl https://raw.githubusercontent.com/azu/ni.zsh/main/ni.zsh > ni.zsh
source ni.zsh
  • correct distribution

Supports

  • npm
  • yarn v1
  • pnpm
  • bun

Requirements

  • zsh
  • jq
  • npm-check if you use npm ni upgrade-interactive

Usage

ni                      -- install current package.json
ni add <pkg>            -- add package
ni remove <pkg>         -- remove package
ni run <script>         -- run scripts
ni test                 -- run test script
ni upgrade              -- upgrade packages
ni upgrade-interactive  -- upgrade package interactively

Command Table

ni npm yarn pnpm bun
ni npm install yarn install pnpm install bun install
ni add <pkg> npm install yarn add pnpm add bun add
ni remove <pkg> npm uninstall yarn remove pnpm remove bun remove
ni run <script> npm run yarn run pnpm run bun run
ni test npm test yarn run test pnpm run test bun run test
ni upgrade npm upgrade yarn upgrade pnpm update
ni upgrade-interactive npm-check yarn upgrade-interactive pnpm update -i

Auto Complete

ni <TAB>

License

MIT ©️ azu

About

Alternative `ni` written in zsh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%