Validates StrongLoop licenses
npm install strongloop-licensestrongloop-license
==================
Validates StrongLoop licenses.
The simplest case is to declare a simple license requirement that takes the
default action if the license check fails.
#### String Form
``js`
require('strongloop-license')('some-product:some-feature=Special Sauce');
#### Options Form
`js`
require('strongloop-license')({
product: 'some-product',
feature: 'some-feature',
label: 'Special Sauce',
});
#### Exit On Failure
`js`
require('strongloop-license')('core:feature', 'EXIT');
#### module(opts, [callback])
* opts: an object or a stringproduct[:feature][=label]
* string: a string of the format product
* object: an object with the following properties:
* : product namefeature
* : feature namelabel
* : friendly name for logs instead of product:featurenow
* : time to compare license against (defaults to Date.now()interval
* : repeat license check ever interval ms (default to 0, disabled)callback
* : function or Stringfunction(err, name, result)
* function: result
* is false or the license details of the matching license'NOOP'
* string: name of builtin handler: , '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.