A Node.js CLI to list dependencies and fetch informations from NPM registry
- List dependencies in package.json
- List installed dependencies in lockfile
- Check latest version of dependencies
- Check NPM audit for security purposes
- Output to JSON (to use with custom scripts or CI, for instance) or CSV (for easy copy/paste in spreadsheets) format
To use DepsAnalyzer, you need Node.js >= 16.0.0
Also make sure the projects you want to analyze have a package.json and dependencies installed before using DepsAnalyzer
With NPM :
npm install -g deps-analyzer
With Yarn :
yarn add -g deps-analyzer
With Yarn :
pnpm add -g deps-analyzer
npm install --save-dev deps-analyzer
With Yarn :
yarn add -D deps-analyzer
With Yarn :
pnpm add -D deps-analyzer
TODO
Inside any Node.js project with dependencies installed :
deps-analyzer
It will perform the analysis in the current directory by default and output the result in JSON format to the standard console output.
If you want help on how to use DepsAnalyzer, just type :
deps-analyzer --help
Contributions are always welcome!
See CONTRIBUTING.md for ways to get started.
Please adhere to this project's code of conduct.
- List dependencies in package.json
- List installed dependencies
- Check latest version of dependencies
- Check NPM audit for security purposes
- Output to JSON (to use with custom scripts or CI, for instance) or CSV (for easy copy/paste in spreadsheets) format
- Output to a file
- Check packages if the project is a monorepo
- Automatic packager detection
- TypeScript definitions
To run tests, run the following command
npm run test