License class
Provides methods for license management.
plugLicense(path: string): Promise
Plugs a license from the specified file path.
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | The path to the license file. |
Example
await slidize.License.plugLicense("./license.lic");
plugLicense(buffer: Buffer): Promise
Plugs a license from a binary buffer.
Parameters
| Name | Type | Description |
|---|---|---|
| stream | Buffer | License data as a Buffer. |
Example
const licenseData = fs.readFileSync("./license.lic");
await slidize.License.plugLicense(licenseData);