Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@odit/license-exporter

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odit/license-exporter

A simple license crawler for crediting open source work

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

ODIT.Services - License Exporter

npm NPM npm Build Status Node.js Package

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(even prettyfied) and markdown. We use this in our open source projects to credit the awesome work of other open source contributors.

Install

Via yarn/npm:

yarn add @odit/license-exporter
# Or
npm i @odit/license-exporter

CLI Usage

Export only your dependencies to json: licenseexporter --json Export all dependencies to json: licenseexporter --json --recursive

Export only your dependencies to markdown: licenseexporter --md Export all dependencies to markdown: licenseexporter --md --recursive

Options

ArgDescriptionTypeDefault
-j, --jsonExports the license information into ./licenses.json as json.flag/[boolean]N/A
-p, --prettyPrettify the json output.flag/[boolean]N/A
-m, --markdownExports the license information into ./licenses.md as markdown.flag/[boolean]N/A
-r, --recursiveInclude all of the dependencies' subdependencies.flag/[boolean]N/A
-d, --depthThe depth for recursive subdependency resolution (1 = dependencies and subsependencies). Has to be used with --recursivenumberInfinity
-o, --outputOutput folder for the exports.[string]Current folder
-i, --inputPath to the input folder containing your package.json and node_modules[string]Current folder
-h, --helpShow helpflag/[boolean]N/A
-v, --versionShow version numberflag/[boolean]N/A

Keywords

FAQs

Package last updated on 27 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc