README.md

July 20, 2026 ยท View on GitHub

@badisi/check-updates

๐Ÿ“ฆ An interactive CLI to scan, visualize and upgrade NPM dependencies โ€” locally or globally.

npm version npm donwloads license

build status PRs welcome


Getting started

This tool scans your project's dependencies, checks for updates on the NPM registry and presents them in a sortable, color-coded table.

In interactive mode, select exactly which packages to upgrade and whether to use the Wanted or Latest version. The tool then updates your package.json files in place while preserving your existing semver ranges and optionally runs npm install to apply the changes.

Installation

npm install -g @badisi/check-updates
yarn add @badisi/check-updates

Features

โœ… Interactive table UI โ€” browse, search and toggle package upgrades - grouped by update severity
โœ… Wanted vs Latest โ€” upgrade to either: the highest version satisfying your semver range or the absolute latest
โœ… Color-coded diffs โ€” instantly see what changed: red for major, cyan for minor, green for patch
โœ… Diagnosis โ€” understand what's missing, unsynced, invalid, unsatisfied, unavailable or at the latest version
โœ… Smart range preservation โ€” caret (^), tilde (~), exact, wildcard, hyphen and OR ranges are all preserved when writing upgrades
โœ… Monorepo-aware โ€” scan multiple package.json files in a single run using glob patterns
โœ… Global support โ€” check and upgrade global NPM packages
โœ… Caching โ€” reduce registry requests and speed up subsequent runs
โœ… Post-upgrade install โ€” optionally run npm install automatically after applying changes

Note: Global package checking and the post-upgrade install step currently support only npm. Pull requests to add support for other package managers are very welcome.

CLI utility preview

Usage

check-updates [path...] [options]

# or using the shorthand alias:
bcu [path...] [options]

# or without installation, using `npx` directly:
npx @badisi/check-updates [path...] [options]

Arguments

ArgumentDescription
path...One or more file paths, folder paths or glob patterns.
Defaults to the current working directory.

Options

OptionDescription
-i, --interactiveRun in interactive mode with a table UI to choose updates and optionally run npm install.
-g, --globalCheck globally installed packages instead of local package.json files.
-c, --cacheEnable caching to reduce network requests.
--allShow up-to-date packages alongside outdated ones.
-v, --versionPrint the tool version.
-h, --helpShow help information.

Examples

  • Check global packages

Visualize and select upgrades for globally installed packages:

check-updates -g
  • Interactive Mode (Recommended)

Interactively choose which updates to apply to your package.json files:

check-updates -i
  • Check specific directories, files or glob patterns

By default, the tool looks for package.json in the current directory, but you can specify any number of targets:

# Check a folder
check-updates path/to/folder

# Check a specific file
check-updates path/to/package.json

# Check multiple files or glob patterns
check-updates ./package.json ./packages/core/package.json
check-updates "./**/package.json" "{,projects/**/}package.json"
  • Include up-to-date packages

By default, up-to-date dependencies are hidden. To show everything run:

check-updates --all
  • Enable cache

Speed up repeated runs by caching registry responses:

check-updates -c

Development

See the developer docs.

Contributing

> Want to Help ?

Want to file a bug, contribute some code or improve documentation ? Excellent!

But please read up first on the guidelines for contributing, and learn about submission process, coding rules and more.

> Code of Conduct

Please read and follow the Code of Conduct and help us keep this project open and inclusive.