# @prodigytech/js-dependency-check

> A utility that checks a projects dependencies and returns a report of the which dependencies are out of date, deprecated, or up to date

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

## Install

```sh
npm install @prodigytech/js-dependency-check
pnpm add @prodigytech/js-dependency-check
yarn add @prodigytech/js-dependency-check
bun add @prodigytech/js-dependency-check
```

Provides the command `dependency-check`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.0.1 |
| Published | 2023-07-07 |
| First published | 2022-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | ^14 \|\| 15^ \|\| ^16 \|\| ^17 \|\| ^18 |
| Dependencies | 4 |
| Unpacked size | 85.4 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | prodigytech |

## Links

- npm: https://www.npmjs.com/package/@prodigytech/js-dependency-check
- Repository: https://github.com/ProdigyTech/JS-Dependency-Check
- Homepage: https://github.com/ProdigyTech/JS-Dependency-Check#readme
- Issues: https://github.com/ProdigyTech/JS-Dependency-Check/issues
- npm.io page: https://npm.io/package/@prodigytech/js-dependency-check

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.27.2
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.11
- [app-root-path](https://npm.io/package/app-root-path.md) ^3.0.0
- [command-line-args](https://npm.io/package/command-line-args.md) ^5.2.1

## Recent versions

- 6.0.1 (latest) — 2023-07-07
- 6.0.0-development.4 (development) — 2023-06-14
- 6.0.0 — 2023-06-14
- 6.0.0-development.3 — 2023-06-14
- 6.0.0-development.2 — 2023-06-14
- 6.0.0-development.1 — 2023-06-14
- 5.0.0 — 2022-11-05
- 5.0.0-development.9 — 2022-11-05
- 5.0.0-development.8 — 2022-11-05
- 5.0.0-development.7 — 2022-07-24
- 5.0.0-development.6 — 2022-07-24
- 5.0.0-development.5 — 2022-07-23
- 5.0.0-development.4 — 2022-07-17
- 5.0.0-development.3 — 2022-06-28
- 5.0.0-development.2 — 2022-06-28
- … 23 more at https://npm.io/package/@prodigytech/js-dependency-check/versions

## README

## Project Dependency Checker

The Project Dependency Checker is a powerful utility tool that serves as a Dev Dependency add-on for your JavaScript projects. Its primary function is to provide you with a comprehensive and insightful report on your project's dependencies, giving you a clear indication of their update status. By comparing your project dependencies against the npm registry, this tool ensures that you are aware of any outdated dependencies that may impact your project's stability and security.

### Installation

To integrate this package into your project, simply execute one of the following commands:

```bash
yarn add @prodigytech/js-dependency-check -D
```

or

```bash
npm install @prodigytech/js-dependency-check --save-dev
```

### Setup

Setting up the utility is a breeze, and you have multiple options to choose from:

1. **package.json Configuration:** You can conveniently configure the utility by adding a `dependencyCheckConfig` object to your project's `package.json` file. This configuration allows you to customize the report type, specify the fail-on criteria, and even define specific packages to ignore.

```json
"dependencyCheckConfig": {
    "reportType": "CI|HTML|JSON",
    "failOn": "MAJOR|MINOR|NONE",
    "ignorePackages": [
        "@babel/preset-env",
        "..."
    ]
}
```

2. **Standalone JSON Configuration:** Alternatively, you can create a separate JSON configuration file named `dependencyCheckConfig.json`. This file provides a clean and dedicated space to configure the utility with the desired report type, fail-on criteria, and any packages you wish to exclude.

```json
{
    "reportType": "CI|HTML|JSON",
    "failOn": "MAJOR|MINOR|NONE",
    "ignorePackages": [
        "@babel/preset-env",
        "..."
    ]
}
```

3. **Command-Line Arguments:** For those who prefer flexibility and quick setup, the utility also supports configuration through command-line arguments. Simply pass the desired options when running the utility command.

```bash
npx @prodigytech/js-dependency-check --reportType "CI|HTML|JSON" --failOn "MAJOR|MINOR|NONE" --ignorePackages axios react eslint
```

### Usage

Using the Project Dependency Checker is straightforward and user-friendly:

1. Ensure that you have successfully added the utility as a dependency in your project.
2. Configure the utility according to your preferences, utilizing any of the available configuration methods: `package.json`, standalone JSON file, or command-line arguments.
3. Execute the following command to run the utility:

```bash
npx @prodigytech/js-dependency-check
```

The generated report will be saved to the root directory of your project for JSON and HTML report types. If you choose the `CI` report type, it will be directly displayed on your screen. Additionally, if you have configured the fail-on option with packages that meet the specified criteria, the process will gracefully exit with a non-zero exit code.

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