# @types/license-checker-webpack-plugin

> TypeScript definitions for license-checker-webpack-plugin

Latest version **0.2.5** (published 2025-06-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/license-checker-webpack-plugin
pnpm add @types/license-checker-webpack-plugin
yarn add @types/license-checker-webpack-plugin
bun add @types/license-checker-webpack-plugin
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2025-06-14 |
| First published | 2019-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/webpack](https://npm.io/package/@types/webpack.md) ^4

## Recent versions

- 0.2.5 (latest) — 2025-06-14
- 0.2.4 (ts4.5) — 2023-11-07
- 0.2.2 (ts4.3) — 2023-08-30
- 0.2.1 (ts3.8) — 2021-12-24
- 0.2.0 (ts3.7) — 2021-11-15
- 0.0.3 (ts3.3) — 2021-01-11
- 0.0.2 (ts2.3) — 2019-09-25
- 0.2.3 — 2023-10-18
- 0.0.4 — 2021-03-25
- 0.0.1 — 2019-03-29
- 0.0.0 — 2019-03-25

## README

# Installation
> `npm install --save @types/license-checker-webpack-plugin`

# Summary
This package contains type definitions for license-checker-webpack-plugin (https://github.com/Microsoft/license-checker-webpack-plugin#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/license-checker-webpack-plugin.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/license-checker-webpack-plugin/index.d.ts)
````ts
import { Compiler, WebpackPluginInstance } from "webpack";

declare class LicenseCheckerWebpackPlugin implements WebpackPluginInstance {
    constructor(options?: Partial<LicenseCheckerWebpackPlugin.Options>);
    apply(compiler: Compiler): void;
}

declare namespace LicenseCheckerWebpackPlugin {
    interface Dependency {
        name: string;
        version: string;
        repository?: string;
        author?: string;
        licenseName: string;
        licenseText?: string;
    }

    interface OutputWriterArgs {
        dependencies: Dependency[];
    }

    type OutputWriter = (args: OutputWriterArgs) => string | Promise<string>;

    interface Options {
        /**
         * Regular expression that matches the file paths of dependencies to check.
         */
        filter: RegExp;

        /**
         * SPDX expression with allowed licenses.
         *
         * @default "(Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR MIT)"
         */
        allow: string;

        /**
         * Array of dependencies to ignore, in the format `["<dependency name>@<version range>"]`.
         * For example, `["assignment@^2.0.0"]`.
         *
         * @default []
         */
        ignore: string[];

        /**
         * Object of dependencies to override, in the format `{"<dependency name>@<version range>": { ... }}`.
         * For example, `{"assignment@^2.0.0": { licenseName: "MIT" }}`.
         *
         * @default {}
         */
        override: Record<string, Partial<Dependency>>;

        /**
         * Whether to emit errors instead of warnings.
         *
         * @default false
         */
        emitError: boolean;

        /**
         * Path to a `.ejs` template, or function that will generate the contents
         * of the third-party notices file.
         */
        outputWriter: string | OutputWriter;

        /**
         * Name of the third-party notices file with all licensing information.
         *
         * @default "ThirdPartyNotices.txt"
         */
        outputFilename: string;
    }
}

export = LicenseCheckerWebpackPlugin;

````

### Additional Details
 * Last updated: Sat, 14 Jun 2025 22:02:18 GMT
 * Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack)

# Credits
These definitions were written by .

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