Easily update package dependencies with a single command.
depupdate automates the process of upgrading all dependency categories (dependencies, devDependencies, peerDependencies, and optionalDependencies) in a Node.js project, then runs audit checks and attempts to fix any discovered vulnerabilities automatically.
- Node.js >= 22
npm install -g @gibme/depupdateor
yarn global add @gibme/depupdateRun depupdate from the root of any Node.js project (where package.json lives).
depupdateUpdates all dependencies to the latest version permitted by the version ranges in package.json. Automatically detects whether the project uses Yarn (yarn.lock) or npm (package-lock.json).
depupdate latestIgnores existing version ranges and updates every dependency to the absolute latest version.
depupdate setupInstalls a standard set of development dependencies:
@types/node@typescript-eslint/eslint-plugin,@typescript-eslint/parsereslint,eslint-config-standard,eslint-plugin-import,eslint-plugin-n,eslint-plugin-node,eslint-plugin-promisetsxtypedoctypescript
Combine with latest to install the latest versions:
depupdate setup latestAfter updating dependencies, depupdate automatically:
- Runs
yarn auditornpm auditto check for known vulnerabilities - If vulnerabilities are found, attempts to fix them (using
npm audit fixoryarn-audit-fix) - Repeats the audit/fix cycle a second time to catch any cascading resolution changes
MIT