Fast and tiny update checker for npm packages, written in Rust.
A speedy way to update all packages in a Node/Bun project, written in Rust.
Bun
bun --bun add -d nrush@latest # Ensures the latest version is used
nrush -i
Node
npx nrush@latest -i
Commands:
nrush about
- Display comprehensive information about NRush.nrush help
- Provide a usage guide for NRush. Primarily, this section.Arguments:
(Arguments are applicable only if no commands are supplied and only nrush
is executed.)
Update Options (-u
/ --update
):
Interactive Mode (-i
/ --interactive
)
-u
and -i
are supplied.Include (--include <dev,peer>
):
dev
and/or peer
dependencies in the update process.Path Specification (-p <path>
/ --path <path>
):
package.json
file. The default is the current directory.Skip Ranges in Versioning (--skip-ranges
):
false
, preserving them.^1.0.0
will be updated to 2.0.0
if --skip-ranges
is supplied.Update Any Version (--update-any
):
*
versions in package.json. Default is false
, maintaining them.*
will be updated to 2.0.0
if --update-any
is supplied.SOON: Semver Constraint (-s <semver>
/ --semver <semver>
):
major
, minor
, or patch
. Default is major
.By executing nrush
without any arguments or commands, a list of updatable packages will be displayed, and you'll be prompted to install them.
I made this as a personal alternative to npm-check-updates
, mostly as a challenge to write a less feature-packed,
faster version that checks the packages concurrently, resulting in 🔥speed🔥.
Concurrency, baby.
Please do. I don't really do Rust that often, and all of this was done in 30 minutes.
omznc/nrush
package figures out your OS architecture and downloads the correct binary. It uses child_process
which you could find alarming, but hey, that's what open-source is for.