Updated desctiption and options in readme [SKIP CI]

This commit is contained in:
Nicolai Ort 2021-01-02 20:46:48 +01:00
parent 2e8c4fe06e
commit 5f2f202f49

View File

@ -3,7 +3,8 @@
[![Build Status](https://ci.odit.services/api/badges/odit/license-exporter/status.svg?ref=refs/heads/main)](https://ci.odit.services/odit/license-exporter) [![Build Status](https://ci.odit.services/api/badges/odit/license-exporter/status.svg?ref=refs/heads/main)](https://ci.odit.services/odit/license-exporter)
A simple license exporter that crawls your package.json and provides you with information about your dependencies' licenses. A simple license exporter that crawls your package.json and provides you with information about your dependencies' licenses.
You can export this information into json and markdown. You can export this information into json(even prettyfied) and markdown.
We use this in our open source projects to credit the awesome work of other open source contributors.
## Install ## Install
Via yarn/npm: Via yarn/npm:
@ -21,10 +22,14 @@ Export all dependencies to json: `licenseexporter --json --recursive`
Export only your dependencies to markdown: `licenseexporter --md` Export only your dependencies to markdown: `licenseexporter --md`
Export all dependencies to markdown: `licenseexporter --md --recursive` Export all dependencies to markdown: `licenseexporter --md --recursive`
## Arguments ## Options
Arg | Description Arg | Description | Type | Default
-|- - | - | - | -
`--help` | View the help dialog -j, --json | Exports the license information into ./licenses.json as json. | flag/[boolean] | N/A
`--recursive`| Include all dependencies' subdependencies -p, --pretty | Prettify the json output.|flag/[boolean] | N/A
`--json` | Exports the license information into ./licenses.json as json -m, --markdown | Exports the license information into ./licenses.md as markdown. | flag/[boolean] | N/A
`--md` | Exports the license information into ./licenses.md as markdow -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