npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bump-sync-deps

v1.0.1

Published

CLI tool that automatically updates your `package.json` dependencies to match the versions installed in your `package-lock.json` while maintaining semantic versioning compatibility.

Downloads

30

Readme

Bump and Synchronize Versions

When you apply audit fixes, or install new dependencies, package manager only updates minor updates in package-lock.json. This tool will also update package.json to match the versions installed in package-lock.json.

Additionally, if you made any dependency changes in the local branch against the main branch, it will show you the differences between the current package.json and the version in the main branch.

A Node.js CLI tool that automatically updates your package.json dependencies to match the versions installed in your package-lock.json while maintaining semantic versioning compatibility.

Also checks and shows differences between the current package.json and the version in the main branch.

Features

  • 🔄 Automatically updates dependencies to match installed versions
  • 🔒 Maintains semantic versioning compatibility
  • 📊 Provides detailed version change reports
  • 🔍 Compares changes with git history
  • ⚡ Supports all dependency types (dependencies, devDependencies, peerDependencies, optionalDependencies)

Installation

Currently only works with npm (and requires package-lock.json).

npm install -D bump-sync-deps

Usage

Simply run the command in your project directory:

bump-sync-deps

The tool will:

  1. Read your package.json and package-lock.json
  2. Update dependency versions while maintaining caret (^) versioning
  3. Only update versions within the same major version to maintain compatibility
  4. Generate a detailed report of all changes
  5. Compare changes with git history (if available)

How It Works

The tool:

  • Preserves caret (^) versioning in your package.json
  • Only updates versions within the same major version to prevent breaking changes
  • Compares changes with your git history to show what versions were updated
  • Categorizes changes into major, minor, and patch updates

Example Output

Updated dequal: ^2.0.2 -> ^2.0.3
Updated markdown-to-jsx: ^7.1.7 -> ^7.5.0
Updated sanitize-html: ^2.7.1 -> ^2.13.0
Updated tslib: ^2.4.0 -> ^2.6.2
Updated @babel/core: ^7.17.10 -> ^7.24.5
✅ Successfully updated package.json with latest installed versions

📜 Comparing with previous git version...

Dependencies:
  Major changes (1):
    - react: ^17.0.0 → ^18.0.0
  Minor changes (2):
    - typescript: ^4.5.0 → ^4.6.0
    - tailwindcss: ^3.0.0 → ^3.1.0
  Patch changes (1):
    - @types/node: ^16.0.0 → ^16.0.1

DevDependencies:
  Minor changes (1):
    - jest: ^27.0.0 → ^27.1.0

Requirements

  • Node.js 12 or higher
  • A project with both package.json and package-lock.json files
  • Git (optional, for version comparison)

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.