# dependency-check-webpack-plugin

> Check if there are new dependencies in package.json that have not been installed, and than automatically execute the install command

Latest version **1.0.6** (published 2023-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install dependency-check-webpack-plugin
pnpm add dependency-check-webpack-plugin
yarn add dependency-check-webpack-plugin
bun add dependency-check-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-06-05 |
| First published | 2023-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | actake |
| Maintainers | actake |
| Keywords | dependency, dependency-check, webpack, webpack-plugin |

## Links

- npm: https://www.npmjs.com/package/dependency-check-webpack-plugin
- Repository: https://github.com/actake/dependency-check-webpack-plugin
- Homepage: https://github.com/actake/dependency-check-webpack-plugin#readme
- Issues: https://github.com/actake/dependency-check-webpack-plugin/issues
- npm.io page: https://npm.io/package/dependency-check-webpack-plugin

## Dependencies (1)

- [shelljs](https://npm.io/package/shelljs.md) ^0.8.5

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2023-06-05
- 1.0.5 — 2023-06-01
- 1.0.4 — 2023-05-31
- 1.0.2 — 2023-05-29
- 1.0.1 — 2023-05-28

## README

# dependency-check-webpack-plugin

Check if there are new dependencies in package.json that have not been installed, and than automatically execute the install command

## Install

```bash
npm i --save-dev dependency-check-webpack-plugin
```

```bash
yarn add dependency-check-webpack-plugin -D
```

## Usage

### webpack.config.js

```javascript
const { DependencyCheckWebpackPlugin } = require("dependency-check-webpack-plugin");

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    // give some options
    new DependencyCheckWebpackPlugin({})
  ]
}
```

## Options

|      Name       |  Type   | Required |           Default            |            Description            |
| :-------------: | :-----: | :------: | :--------------------------: | :-------------------------------: |
|      skip       | boolean |  false   |            false             |      skip plugin  execution       |
| installCommand  | string  |  false   |        'yarn install'        |  install command in your project  |
| packageJSONPath | string  |  false   | `${executeDir}/package.json` | package.json path in your project |
| nodeModulesPath | string  |  false   | `${executeDir}/node_modules` | node_modules path in your project |

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