Skip to content

dbritto-dev/npm-ri

Repository files navigation

npm-ri

npm install using regular expression to update installed packages

Usage

Basic (by default the dependency version is "latest")

npx npm-ri "<dependecy-name-regex>"

Example

npx npm-ri "@radix-ui/.*"

With custom version

npx npm-ri "<dependency-name-regex>" --dependency-version <dependency-version>

or

npx npm-ri "<dependency-name-regex>" -dv <dependency-version>

Example

npx npm-ri "@tanstack/.*" -dv beta