Merge branch 'main' of git.odit.services:odit/license-exporter into main
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Nicolai Ort 2021-02-13 13:44:56 +01:00
commit fb15002582
3 changed files with 11 additions and 10 deletions

View File

@ -24,12 +24,12 @@ Export all dependencies to markdown: `licenseexporter --md --recursive`
## Options
Arg | Description | Type | Default
- | - | - | -
-j, --json | Exports the license information into ./licenses.json as json. | flag/[boolean] | N/A
-p, --pretty | Prettify the json output.|flag/[boolean] | N/A
-m, --markdown | Exports the license information into ./licenses.md as markdown. | flag/[boolean] | N/A
-r, --recursive | Include all of the dependencies' subdependencies. | flag/[boolean] | N/A
-o, --output | Output folder for the exports. | [string] | Current folder
-i, --input | Path to the input folder containing your package.json and node_modules | [string] | Current folder
-h, --help | Show help | flag/[boolean] | N/A
-v, --version | Show version number | flag/[boolean] | N/A
| - | - | - | -
\-j, --json | Exports the license information into ./licenses.json as json. | flag/[boolean] | N/A
\-p, --pretty | Prettify the json output.|flag/[boolean] | N/A
\-m, --markdown | Exports the license information into ./licenses.md as markdown. | flag/[boolean] | N/A
\-r, --recursive | Include all of the dependencies' subdependencies. | flag/[boolean] | N/A
\-o, --output | Output folder for the exports. | [string] | Current folder
\-i, --input | Path to the input folder containing your package.json and node_modules | [string] | Current folder
\-h, --help | Show help | flag/[boolean] | N/A
\-v, --version | Show version number | flag/[boolean] | N/A

View File

@ -74,6 +74,7 @@ function getDependencyLicenseInfo(all_dependencies, recursive) {
description: packageinfo.description,
name: packageinfo.name,
license: packageinfo.license,
version: packageinfo.version,
licensetext
};
all.push(info);

View File

@ -1,6 +1,6 @@
{
"name": "@odit/license-exporter",
"version": "0.0.8",
"version": "0.0.9",
"description": "A simple license crawler for crediting open source work",
"keywords": [
"license",