Skip to content

devfans/node-license-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-license-client

NPM Version NPM Downloads Build Status Test Coverage

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()
}

About

Client module for node-license-server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages