diff --git a/README.md b/README.md index 1db1071..3b16fa2 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file +| - | - | - | - +\-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 \ No newline at end of file diff --git a/bin/exporter.js b/bin/exporter.js index 0c0f36a..55093af 100644 --- a/bin/exporter.js +++ b/bin/exporter.js @@ -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); diff --git a/package.json b/package.json index 64a12ab..3b204c6 100644 --- a/package.json +++ b/package.json @@ -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",