npm.io
4.0.3 • Published 2 years ago

@types/nodejs-license-file

Licence
MIT
Version
4.0.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Troy McKinnon.