Merge branch 'main' of git.odit.services:odit/license-exporter into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
commit
fb15002582
18
README.md
18
README.md
|
@ -24,12 +24,12 @@ Export all dependencies to markdown: `licenseexporter --md --recursive`
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
Arg | Description | Type | Default
|
Arg | Description | Type | Default
|
||||||
- | - | - | -
|
| - | - | - | -
|
||||||
-j, --json | Exports the license information into ./licenses.json as json. | 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
|
\-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
|
\-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
|
\-r, --recursive | Include all of the dependencies' subdependencies. | flag/[boolean] | N/A
|
||||||
-o, --output | Output folder for the exports. | [string] | Current folder
|
\-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
|
\-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
|
\-h, --help | Show help | flag/[boolean] | N/A
|
||||||
-v, --version | Show version number | flag/[boolean] | N/A
|
\-v, --version | Show version number | flag/[boolean] | N/A
|
|
@ -74,6 +74,7 @@ function getDependencyLicenseInfo(all_dependencies, recursive) {
|
||||||
description: packageinfo.description,
|
description: packageinfo.description,
|
||||||
name: packageinfo.name,
|
name: packageinfo.name,
|
||||||
license: packageinfo.license,
|
license: packageinfo.license,
|
||||||
|
version: packageinfo.version,
|
||||||
licensetext
|
licensetext
|
||||||
};
|
};
|
||||||
all.push(info);
|
all.push(info);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@odit/license-exporter",
|
"name": "@odit/license-exporter",
|
||||||
"version": "0.0.8",
|
"version": "0.0.9",
|
||||||
"description": "A simple license crawler for crediting open source work",
|
"description": "A simple license crawler for crediting open source work",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"license",
|
"license",
|
||||||
|
|
Reference in New Issue