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

bun-updater

v0.0.9

Published

> A simple and interactive way to update bun dependencies

Downloads

4

Readme

bun-updater

A simple and interactive way to update bun dependencies

Goal

The goal of this package is to provide an interactive way to update dependencies (mono or single repo) using bun.

Both pnpm and yarn already have this command (pnpm up -i or yarn update-interactive) but unfortunately, bun doesn't (yet). So, this CLI aims to temporarily solve this problem until it becomes native in Bun CLI.

See https://github.com/oven-sh/bun/issues/4895.

Usage

In my tests, it works better if you install it as a global dependency over bunx. I've encountered some terminal UI bugs with bunx.

So,

bun add --global bun-updater

Once it finishes, in the repository you want to update the dependencies:

bun-updater

This will trigger the CLI, and you just need to follow the prompts.

FAQ

This is probably because you don't have bun bin folder listed in your PATH.

To check if you do, run:

bun pm -g bin

If it gives a warn saying not in $PATH, you have to add it into your terminal config file (.zshrc, .bash_profile, .bashrc,etc.):

# rest of your config
export BUN_INSTALL=$(bun pm -g bin)
export PATH="$BUN_INSTALL:$PATH"

Contributing

Install the dependencies:

bun install

Then you can run

bun run dev

This will trigger the CLI to scan the current repository.

To test in the "examples" folder, you can navigate inside either the monorepo or the singlerepo folders:

cd examples/monorepo

Then, you can invoke the CLI script from the monorepo folder:

bun ../../src/cli.ts

This will ensure that process.cwd() is in the correct place.