New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

strongloop-license

Package Overview
Dependencies
Maintainers
9
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strongloop-license

Validates StrongLoop licenses

  • 1.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
249
decreased by-8.79%
Maintainers
9
Weekly downloads
 
Created
Source

strongloop-license

Validates StrongLoop licenses.

Usage

The simplest case is to declare a simple license requirement that takes the default action if the license check fails.

Examples

String Form
require('strongloop-license')('some-product:some-feature=Special Sauce');
Options Form
require('strongloop-license')({
  product: 'some-product',
  feature: 'some-feature',
  label: 'Special Sauce',
});
Exit On Failure
require('strongloop-license')('core:feature', 'EXIT');

API

module(opts, [callback])
  • opts: an object or a string
    • string: a string of the format product[:feature][=label]
    • object: an object with the following properties:
      • product: product name
      • feature: feature name
      • label: friendly name for logs instead of product:feature
      • now: time to compare license against (defaults to Date.now()
      • interval: repeat license check ever interval ms (default to 0, disabled)
  • callback: function or String
    • function: function(err, name, result)
      • result is false or the license details of the matching license
    • string: name of builtin handler: 'NOOP', 'CONSOLE', 'EXIT'
module.CONSOLE

Default handler, prints a message to stderr if a license match is not found or a message to stdout stating when the license is valid.

Keywords

FAQs

Package last updated on 11 Apr 2016

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