ni
ni (@antfu/ni) runs package manager operations through one set of commands, and nr runs scripts. This page covers installation and common command aliases.
Installation#
Install globally with npm:
Configuration#
Use the section for your platform.
Add aliases in PowerShell#
Add the aliases to your PowerShell profile:
-
Remove PowerShell's built-in
nialias, which otherwise shadows the ni command: -
Define the alias functions:
Add aliases on macOS and Linux#
Add to your shell config file, such as ~/.zshrc:
Usage#
With the aliases in place, use these short commands: