# @types/npm-install-webpack-plugin

> TypeScript definitions for npm-install-webpack-plugin

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

## Install

```sh
npm install @types/npm-install-webpack-plugin
pnpm add @types/npm-install-webpack-plugin
yarn add @types/npm-install-webpack-plugin
bun add @types/npm-install-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 | 4.0.5 |
| Published | 2023-11-07 |
| First published | 2020-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 4.0.5 (latest) — 2023-11-07
- 4.0.2 (ts3.7) — 2021-07-08
- 4.0.0 (ts3.0) — 2020-06-04
- 4.0.4 — 2023-10-18
- 4.0.3 — 2023-09-23
- 4.0.1 — 2021-03-25

## README

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

/**
 * Speed up development by automatically installing & saving dependencies with Webpack.
 */
declare class NpmInstallPlugin extends Plugin {
    constructor(options?: NpmInstallPlugin.Options);
}

declare namespace NpmInstallPlugin {
    interface Options {
        /**
         * Use --save or --save-dev
         * @default false
         */
        dev?: boolean | DevFunction | undefined;
        /**
         * Install missing peerDependencies
         * @default true
         */
        peerDependencies?: boolean | undefined;
        /**
         * Reduce amount of console logging
         * @default false
         */
        quiet?: boolean | undefined;
        /**
         * npm command used inside company, yarn is not supported yet
         */
        npm?: string | undefined;
    }

    type DevFunction = (module: string, path: string) => boolean;
}

export = NpmInstallPlugin;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack)

# Credits
These definitions were written by [Piotr Błażejewicz](https://github.com/peterblazejewicz).

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