Package Exports
- node-license-client
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 (node-license-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-license-client
Client module for node-license-server
Installation
npm i node-license-client
Get Started
const LicenseClient = require('node-license-client')
const options = {
certHex: '', // hex of public.pem, not required if pemPath is specified
pemPath: 'public.pem', // path of public.pem, not required if certHex is provided
identity: 'Client Software', // identify of the client software
secret: 'Client Software', // optional(unique secret to identify physical machine, please refer to `machine-digest`)
keyFilePath: '', // path of license key, default is 'key.txt'
licenseFilePath: '', // path of license file, defautl is 'license.txt'
licenseServer: 'https://license-server/' // license server address
}
const client = new LicenseClient(options)
// during app init
const init = async () => {
await licensing.verify()
}