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

@lofcz/depset

v52.3.6

Published

Synchronize dependencies in package.json

Readme

depset

A command-line tool to synchronize package dependencies in your package.json to their latest versions, a specific target version, or versions matching a pattern.

Invocation

Run depset using your preferred package manager:

  • npx:
    npx depset@latest [args...]
  • pnpm:
    pnpm dlx depset@latest [args...]
  • yarn:
    yarn dlx depset@latest [args...]
  • bun:
    bunx depset@latest [args...]

Usage

depset [package-specifier] [target-version] [options]

Arguments

  • [package-specifier] (Optional)
    The package name or pattern to target. If omitted (and --yes is not used), you will be prompted.

    • Exact Name: e.g., lodash, @babel/core
    • Scope: e.g., @myorg (targets packages like @myorg/component-a, @myorg/utils)
    • Prefix: e.g., eslint-* (targets packages like eslint-plugin-react, eslint-config-next)
  • [target-version] (Optional)
    The maximum version to synchronize to (e.g., "1", "1.2", "1.2.3"). If omitted (and neither --latest nor --yes are used), you will be prompted. If --latest is used, this is ignored.

Options

Usage: depset [options] [package-specifier] [target-version]

Synchronize package dependencies to their latest or a specific version.

Arguments:
  package-specifier   Package name or pattern (e.g., "@scope/foo*", "my-package", "@myorg").
                      Prompts if not provided (unless -y is used).
  target-version      Target version (e.g., "1.2.3"). Prompts if not provided (unless -L or -y is used).
                      Defaults to latest if left blank in prompt or if -L is used.

Options:
  -L, --latest        Use the latest version, skip version prompt. (default: false)
  -i, --install       Automatically run install after updating package.json. (default: false)
  -y, --yes           Skip all confirmation prompts. (default: false)
  -c, --cwd <path>    Set the current working directory. (default: current directory)
  -s, --silent        Silence all output except for errors. (default: false)
  -v, --version       Display the version number.
  -h, --help          Display help for command.

Examples

  1. Sync lodash to its latest version (prompts for version if not specified with --latest):

    npx depset@latest lodash
  2. Sync all packages in the @babel scope to their absolute latest versions, and install, skipping all prompts:

    npx depset@latest @babel --latest --install --yes
  3. Sync packages starting with eslint- up to version 8.50.0:

    npx depset@latest "eslint-*" 8.50.0

    (You will be prompted to confirm changes and installation unless -y is used)

  4. Run interactively, prompting for all inputs:

    npx depset@latest