# @types/nodejs-license-file

> TypeScript definitions for nodejs-license-file

Latest version **4.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/nodejs-license-file
pnpm add @types/nodejs-license-file
yarn add @types/nodejs-license-file
bun add @types/nodejs-license-file
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.3 |
| Published | 2023-11-07 |
| First published | 2019-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51417 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/nodejs-license-file
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodejs-license-file
- npm.io page: https://npm.io/package/@types/nodejs-license-file

## Recent versions

- 4.0.3 (latest) — 2023-11-07
- 4.0.1 (ts3.6) — 2021-07-08
- 4.0.0 (ts2.0) — 2019-03-27
- 4.0.2 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodejs-license-file/index.d.ts)
````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](https://github.com/trodi).

---
_Source: https://npm.io/package/@types/nodejs-license-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
