Dependency reporter is a lightweight reporting tool for your NPM-based projects.
Dependency reporter can be installed in two ways:
- Locally in a project (recommended):
npm install --save-dev dependency-reporter
or
yarn add --dev dependency-reporter
- Globally:
npm install --global dependency-reporter
or
yarn global add dependency-reporter
To use dependency reporter you should navigate to any directory containing
an NPM-based project. This assumes package.json
and node_modules
exist.
To generate a dependency report you should run one of the following commands:
-
yarn dependency-reporter
for local installation, -
dependency-reporter
for global installation.
After the reporter finishes its work you can find the report in
./report/dependency-report
.
Currently, dependency reporter is only capable of working inside of an NPM-based project and produces one format of the report - the Confluence Wiki format.
Also, the reporter assumes all packages come from the main NPM registry. There's no support for self-hosted repositories yet.
All license links lead to the Open Source Initiative definitions and there's no way of configuring it at the moment.
- Add more formats:
- Markdown
- JSON
- ...
- Add configuration options:
- Custom
package.json
location - Custom
node_modules
location - Dependency overriding
- License warnings and errors
- Custom
- Support for self-hosted repositories
- ...