This is a UI report of all dependencies in your package.json with their description and suggestions for upgrade
Here is the running demo of generated libs-inspector report:
npm install --save-dev libs-inspector
- open your project's root folder
- run in the terminal:
npx libs-inspector
- a new folder will be generated in project's root:
libs-inspector-report
- open it's
index.html
Tips for automated usage:
- Add
libs-inspector
package todevDependencies
in yourpackage.json
file - Add new npm script to your
package.json
file, that will calllibs-inspector
library. E.g:
"scripts": {
"generate:lib-report": "libs-inspector"
}
- You can run this script whenever you want in your CI with
npm run generate:lib-report
command, but better - to add it topostinstall
script. E.g:
"scripts": {
"postinstall": "npm run generate:lib-report"
}
Each time you setup a project and install dependencies, the report will be automatically generated
Don't forget to add generated libs-inspector-report
folder to your .gitignore
file
- The report generates 2 tables: dependencies and devDependencies
- If your project doesn't have devDependencies, then it will be written in empty block
- Information for each dependency is being retrieved from: https://npms.io
- If the dependency info couldn't be got from
npms.io
, then the row is highlighted in red - When package version can be updated to new major version, its cell is highlighted
- If dependency is being duplicated in devDependencies, then the row is highlighted in red
- vulnerabilities check
- configuration file for excluding specific libs
You can check out the full license here
This project is licensed under the terms of the MIT license.