Skip to content

Icaruk/up-npm

Repository files navigation

up-npm

CLI tool written in Go to review and update your NPM dependencies, easy and fast.

built with Codeium

Features

  • 🔍 Easily identify the update type for each package, whether it's a patch, minor, or major update.
  • 📃 Review the release notes for each package to see "what's new" before deciding whether to update.
  • 🦘 Selectively skip updates for specific packages.
  • 🛡️ Back up your package.json file before updating, ensuring you always have a fallback option if something goes wrong.

Usage

Go where your package.json is located and run:

up-npm

or

up-npm [flags]
Flag Description
--no-dev Exclude dev dependencies. Default false.
-f, --filter string Filter dependencies by package name
--allow-downgrade Allows downgrading a if latest version is older than current.
--file string Default package.json.
-h, --help Display help information for up-npm.
-v, --version Display the version number for up-npm.

Examples

# Update dependencies
npm-up

# Excluding dev dependencies
npm-up --no-dev

# Update only packages containing "lint"
npm-up --filter lint
npm-up -f lint

# Update some specific .json
npm-up --file my-project/package.json

Build yourself