license-bb
TypeScript icon, indicating that this package has built-in type declarations

1.3.9 • Public • Published

license-bb

SDK to create license for any project.

Install using below command.

$ npm i license-bb@latest

Import Package in JavaScript/NodeJs.

const {License} = require('license-bb');

Import Package in TypeScript.

import { License } from "license-bb";

At the time of initialization 'License Key' is required, This product code is auto generated code from BBLicense when you add any new product. BBLicense

- When it load it will take your system info for security purpose and for License purpose.

- Below functions to access the functionality

#List of Functions

Function Name Parameters Example
License.init() base_Url: String
license_Key: String
clientData: Object
base_Url:'',
license_Key: 'XXXX-XXXXX-XXXX-XXX',
clientData: {
  email:required*,
  phone:required*,
  userName:required*,
  orgId:required*,
  orgName:required*,
  assignType: "default"
  serverNameAlias:required*
}
License.getFeatures() org_Id: String
featureName: String | String[]
org_Id:'UniqueId',
featureName: 'users'
OR featureName: ['users','teams']
OR featureName: 'all'
License.updateLicense() license_Key: String
org_Id: String
assignType:String
license_Key: 'XXXX-XXXXX-XXXX-XXX',
org_Id: 'UniqueId'
assignType:'update'
License.sync() license_Key: String
org_Id: String
license_Key: 'XXXX-XXXXX-XXXX-XXX',
org_Id: 'UniqueId'
License.getLicenseDetails() org_Id: String org_Id: 'UniqueId'
Key value description/purpose
code 1 Success response from SDK
-1 Fail/Invalid/Error response from SDK
-2 Request fail with licensing server (SDK communicating with license server.)
data Object On success you will get data object but incase of features you will get value instead of object.
result String Message based on different response code.

Authors

Package Sidebar

Install

npm i license-bb

Weekly Downloads

55

Version

1.3.9

License

MIT

Unpacked Size

223 kB

Total Files

8

Last publish

Collaborators

  • lsachin