4.0.3 • Published 6 months ago
@types/nodejs-license-file v4.0.3
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
// Type definitions for nodejs-license-file 4.0
// Project: https://github.com/bushev/nodejs-license-file
// Definitions by: Troy McKinnon <https://github.com/trodi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 08 Jul 2021 18:51:33 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Troy McKinnon.