Installation
npm install --save @types/nodejs-license-file
Summary
This package contains type definitions for nodejs-license-file (https://github.com/bushev/nodejs-license-file).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodejs-license-file.
index.d.ts
export function parse(options: ParseOptions): License;
export function generate(options: GenerateOptions): string;
export interface License {
valid: boolean;
serial: string;
data: any;
}
export interface ParseOptions {
publicKeyPath?: string | undefined;
publicKey?: string | undefined;
licenseFilePath?: string | undefined;
licenseFile?: string | undefined;
template: string;
}
export interface GenerateOptions {
privateKeyPath?: string | undefined;
privateKey?: string | undefined;
template: string;
data: any;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Troy McKinnon.