1.0.1 • Published 6 months ago
node-package-updater v1.0.1
node-package-updater
node-package-updater upgrades your package.json dependencies to the latest versions, ignoring specified versions.
Installation
curl -fsSL https://raw.githubusercontent.com/GNURub/node-package-updater/main/install.sh | bash
go install github.com/GNURub/node-package-updater/cmd/npu@latest
or
npm install -g node-package-updater
Usage
A CLI application to manage dependencies
Usage:
npu [flags]
npu [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
upgrade Upgrade to the latest version of the CLI
version Print the version number of NPU
Flags:
-C, --cleanCache Clean cache
-c, --config string Path to config file (default: .npmrc)
-d, --dir string Root directory for package search
-D, --dryRun Show what would be updated without making changes
-e, --exclude strings Packages to exclude (can be specified multiple times)
-h, --help help for npu
-I, --include strings Packages to include (can be specified multiple times)
-i, --includePeer Include peer dependencies
-k, --keepRange Keep range operator on version (default true)
-l, --log string Log level (debug, info, warn, error) (default "info")
-m, --minor Update to latest minor versions
-n, --noInstall Do not install packages after updating
-x, --nonInteractive Non-interactive mode
-M, --packageManager string Package manager to use (npm, yarn, pnpm, bun)
-p, --patch Update to latest patch versions
-P, --production Update only production dependencies
-r, --registry string NPM registry URL (default "https://registry.npmjs.org/")
-s, --semanticVersion Maintain semver satisfaction
-t, --timeout int Timeout in seconds for each package update (default 30)
-V, --verbose Show detailed output
-w, --workspaces Include workspace repositories
Benchmarks
Command | Mean s | Min s | Max s | Relative |
---|---|---|---|---|
npu -x -n | 1.005 ± 0.144 | 0.885 | 1.367 | 1.00 |
ncu -u | 3.831 ± 0.298 | 3.519 | 4.504 | 3.81 ± 0.62 |
Summary
npu -x -n ran 3.81 ± 0.62 times faster than ncu -u