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 🙏

© 2024 – Pkg Stats / Ryan Hefner

hotdogs

v1.0.0

Published

`hotdogs`: A CLI tool to check and update your package.json dependencies to their latest versions.

Downloads

20

Readme

hotdogs

Simple, zero-dependency acorn sized (~3kB) package.json dependency updater with the power of bun

Keep your dogs bunned and steamy with the hotdogs CLI.

# In your shell
# Print the latest dependencies 👀
npx hotdogs
pnpm dlx hotdogs
yarn dlx hotdogs
bunx hotdogs

# or write them to package.json 📝
npx hotdogs -w
pnpm dlx hotdogs -w
yarn dlx hotdogs -w
bunx hotdogs -w

# or if you install globally 🌐
npm i -g hotdogs
hotdogs

# or save a few keystrokes ⌨️
bun i -g hotdogs

# or if it is a package.json dependency and `./node_modules/.bin` is in your $PATH 😵‍💫
npm i -D hotdogs # or without -D
hotdogs
// or as a script in your package json 📦
{
  "scripts": {
    "some-name-check-deps": "bunx hotdogs",
    "some-name-update-deps": "bunx hotdogs -w"
  }
}

📄 About

Usage

hotdogs is a CLI tool made to quickly update your package.json dependencies to their latest versions.

  • Updates package versions to the latest tag
  • Retains version specifiers such as ~ ^
  • (Planned) specify the dist-tag targets you wish to update to with --tag i.e. hotdogs -w --tag="canary,next"

Personally, I find this pairs well if you use exact versions (no ^ ~) in your package.json.

Limitations

hotdogs only updates package.json dependencies to their latest version, as specified by their latest tag on the NPM registry (or the tags and fallbacks you specify).

For now, the tool was designed explicitly for this purpose. If this does not suit your use case, I'd highly recommend some other tools which can handle updating to scopes you desire, such as major / minor / patch etc.

🔧 Options

Options (denoted by {opt}) can be specified by passing:

  • Most options:

    • -{opt} or --{opt}
    • -{opt} -{opt} or --{opt} --{opt}
    • -{opt}{opt} or --{opt}{opt}
  • -i and -x:

    • These options must be delimited in the args on their own, for example:

      -i=package1 -{otheropts} or --i=package1

      -x=package1 -{otheropts} or --x=package1

    • Also, they can have quotes ' " or none at all:

      -i=package1 or -i='package1' or -i="package1"

      -x=package1 or -x='package1' or -x="package1"

    • Finally, they use , (no space!) to delimit which package names to pass:

      -i=package1,package2,package3

      -x=package1,package2,package3

Usage

### -d, -v: Show more detailed messaging
hotdogs -d
hotdogs -v

### -F: Disable color formatting
hotdogs -F

### -h: Show help message.
hotdogs -h

### -i: Specify comma `,` delimited list of dependencies to include. Each string is matched against the entire dependency's name. Can include `'` or `"` around the list if you want.
hotdogs -i=solid # Would include 'solid-js', '@solidjs/meta', 'eslint-plugin-solid' etc.
hotdogs -i=solid,unocss # Would include 'solid-js', '@solid...', 'unocss', '@unocss/reset', etc.
# Different command formatting, if desired:
hotdogs -i="solid,unocss"
hotdogs -i='solid,unocss'


### -w: Write found updates to `package.json`. By default, `hotdogs` does not do anything to it.
hotdogs -w

### -x: Specify comma `,` delimited list of dependencies to exclude. Each string is matched against the entire depenency's name. Can include `'` or `"` around the list if you want.
hotdogs -x=eslint # Would exclude 'eslint', '@typescript-eslint/...', 'prettier-eslint` etc.
hotdogs -x=eslint,@fortawesome # Would exclude 'eslint', '@typescript-eslint/...', '@fortawesome/fontawesome-...' etc.
# Different command formatting, if desired:
hotdogs -x="eslint"
hotdogs -x='eslint,@fortawesome'

✨ Alternatives

hotdogs was inspired by these other excellent package update managers:

Please check them out! Especially if hotdogs doesn't fit your use case! 😁