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

legal-eagle

Package Overview
Dependencies
Maintainers
12
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

legal-eagle

A tool for listing the licenses of all dependencies of a node module

  • 0.16.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
892
decreased by-18.76%
Maintainers
12
Weekly downloads
 
Created
Source

A library for listing the licenses of an npm module's dependencies.

Basic Usage

Provide the path to the module in question and a callback. Your callback will be passed a hash with the name@version of each dependency as a key and its license, source, and sourceText.

legalEagle = require 'legal-eagle'

legalEagle {path: process.cwd()}, (err, summary) ->
  return console.error(err) if err?
  console.log(summary)

Optional Parameters

Omit Permissive Licenses

Pass omitPermissive: true in the params hash to only list unknown or non-permissive licenses in the summary.

License Overrides

If you know the license of a given dependency but this library can't automatically determine it, pass an overrides hash with its name@version as the key and the license, source and sourceText you want to use in the summary.

License

MIT

FAQs

Package last updated on 19 Jul 2018

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