# @types/duplicate-package-checker-webpack-plugin

> TypeScript definitions for duplicate-package-checker-webpack-plugin

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

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.1.5 |
| Published | 2023-11-07 |
| First published | 2017-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51484 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.1.5 (latest) — 2023-11-07
- 2.1.2 (ts3.7) — 2021-07-08
- 2.1.0 (ts2.3) — 2018-06-27
- 1.2.1 (ts2.2) — 2018-02-13
- 1.2.0 (ts2.0) — 2017-10-03
- 2.1.4 — 2023-10-18
- 2.1.3 — 2023-09-22
- 2.1.1 — 2021-03-25
- 1.2.2 — 2018-03-10

## README

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

export = DuplicatePackageCheckerWebpackPlugin;

declare class DuplicatePackageCheckerWebpackPlugin extends Plugin {
    constructor(options?: DuplicatePackageCheckerWebpackPlugin.Options);
}

declare namespace DuplicatePackageCheckerWebpackPlugin {
    /** The properties of the instance of a package */
    interface PackageInstanceProperties {
        /** The name of the package */
        name: string;
        /** The version of the package */
        version: string;
        /** Absolute path to the package */
        path: string;
        /** Absolute path to the module that requested the package */
        issuer?: string | undefined;
    }

    /** The configurable options for the plugin */
    interface Options {
        /** Also show module that is requiring each duplicate package (default: false) */
        verbose?: boolean | undefined;
        /** Emit errors instead of warnings (default: false) */
        emitError?: boolean | undefined;
        /** Show help message if duplicate packages are found (default: true) */
        showHelp?: boolean | undefined;
        /** Warn also if major versions differ (default: true) */
        strict?: boolean | undefined;

        /**
         * Exclude instances of packages from the results.
         * If all instances of a package are excluded, or all instances except one,
         * then the package is no longer considered duplicated and won't be emitted as a warning/error.
         * @param instance The instance of a package being evaluated for exclusion.
         * @returns true to exclude the instance, false otherwise
         */
        exclude?: ((instance: PackageInstanceProperties) => boolean) | undefined;
    }
}

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack)

# Credits
These definitions were written by [Matt Traynham](https://github.com/mtraynham).

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