JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 297
  • Score
    100M100P100Q85040F
  • License StrongLoop License Agreement

Validates StrongLoop licenses

Package Exports

  • strongloop-license

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strongloop-license) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.

require('strongloop-license')('some-product:some-feature');

module(opts, [callback])

  • opts: an object or a string
    • string: a string of the format product:feature
    • object: an object with the following properties:
      • product: product name
      • feature: feature name
      • 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)
    • string: name of builtin handler: NOOP, 'CONSOLE', EXIT
require('strongloop-license')({
  product: 'some-product',
  feature: 'some-feature',
}, 'EXIT');