paudit
v1.0.14
Published
Checks for duplicate, unused, and outdated dependencies in package.json
Maintainers
Readme
paudit
A tool to check:
- Duplicate packages between dependencies and devDependencies
- Unused packages (present in package.json but never imported)
- Outdated packages compared to npm
Installation
npm install -g pauditUsage
From CLI (cd into your project folder first, where there is the package.json file):
pauditOr with JSON output (for CI/CD):
paudit --jsonSample
As a library
import { checkPackageJson } from "paudit";
const result = await checkPackageJson({ outputJson: true });
console.log(result);CLI Output
⚠️ Duplicate packages:
lodash
⬆️ Packages to update:
express: ^4.17.0 → 4.18.2
🗑 Unused packages:
momentLicense
MIT
