https://github.com/tj-actions/depcheck
:octocat: Github action to validate unused node project dependencies.
https://github.com/tj-actions/depcheck
actions depcheck dependencies dependency-analysis github-actions npm-dependencies npm-package
Last synced: 5 months ago
JSON representation
:octocat: Github action to validate unused node project dependencies.
- Host: GitHub
- URL: https://github.com/tj-actions/depcheck
- Owner: tj-actions
- License: mit
- Created: 2020-08-06T02:58:54.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T12:11:32.000Z (7 months ago)
- Last Synced: 2025-04-12T03:23:00.362Z (6 months ago)
- Topics: actions, depcheck, dependencies, dependency-analysis, github-actions, npm-dependencies, npm-package
- Language: Shell
- Homepage:
- Size: 448 KB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://app.codacy.com/gh/tj-actions/depcheck/dashboard?utm_source=gh\&utm_medium=referral\&utm_content=\&utm_campaign=Badge_grade)
[](https://github.com/tj-actions/depcheck/actions?query=workflow%3ACI)
[](https://github.com/tj-actions/depcheck/actions/workflows/sync-release-version.yml)
[](https://github.com/search?o=desc\&q=tj-actions+depcheck+path%3A.github%2Fworkflows+language%3AYAML\&s=\&type=Code)[](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on)
[](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on)
[](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on)[](#contributors-)
## depcheck
Analyze node project dependencies using [depcheck](https://github.com/depcheck/depcheck).

## Usage
```yaml
...
steps:
- uses: actions/checkout@v4
- name: depcheck
uses: tj-actions/depcheck@v9
with:
ignores: 'eslint,babel-*'
```* Free software: [MIT license](LICENSE)
If you feel generous and want to show some extra appreciation:
[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]
[buymeacoffee]: https://www.buymeacoffee.com/jackton1
[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png
## Inputs
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|-------------------------------------------------------|--------|----------|-----------|------------------------------------------------------------------------------|
| [dir](#input_dir) | string | false | `"."` | The directory to run [depcheck](https://github.com/depcheck/depcheck#readme) |
| [ignores](#input_ignores) | string | false | | Comma separated list of packages
to ignore |
| [version](#input_version) | string | false | `"1.4.7"` | Version of [depcheck](https://github.com/depcheck/depcheck/tags) |## Outputs
| OUTPUT | TYPE | DESCRIPTION |
|---------------------------------------------------------------|--------|--------------------|
| [exit\_code](#output_exit_code) | string | depcheck exit code |## Features
* Runs dependency checks using a specified location.
* Ignores specific packages.## Credits
This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter).
## Report Bugs
Report bugs at https://github.com/tj-actions/depcheck/issues.
If you are reporting a bug, please include:
* Your operating system name and version.
* Any details about your workflow that might be helpful in troubleshooting.
* Detailed steps to reproduce the bug.## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Raphael Boidol
📖
Dave Johansen
💻 📖 👀
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!