@ehildt/depbadge 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +42 -46
  2. package/dist/index.mjs +5636 -239
  3. package/package.json +14 -20
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # DEPBADGE
2
-
3
- Depbadge is a CLI tool that automatically generates and maintains dependency and status badges for your project documentation — perfect for keeping your badges consistent and up-to-date.
1
+ <div align="center">
4
2
 
5
- It reads your project’s manifest and produces Shields-based badges rendered dynamically via Shields.io, fully compatible with GitHub, GitLab, and other platforms. All layout, grouping, styling, and badge composition are defined in a depbadgerc.yml configuration file, making the output deterministic, reproducible, and fully automated.
3
+ # DEPBADGE
6
4
 
7
- Depbadge handles both dependency badges and third-party status badges (e.g., releases, container metrics, coverage), injecting them directly into your target documentation file (default README.md) so your badges are always accurate. It also supports generating previews and structured definitions for inspection or CI/CD workflows.
5
+ </div>
8
6
 
9
- By automating badge generation, Depbadge solves common problems: outdated badges, inconsistent styling, and manual maintenance overhead — keeping your documentation visually consistent and trustworthy.
7
+ <div align="justify">
8
+ Depbadge is a CLI tool that automatically generates and maintains dependency and status badges for your project documentation — perfect for keeping your badges consistent and up-to-date. It reads your project’s manifest and produces Shields-based badges rendered dynamically via Shields.io, fully compatible with GitHub, GitLab, and other platforms. All layout, grouping, styling, and badge composition are defined in a depbadgerc.yml configuration file, making the output deterministic, reproducible, and fully automated. Depbadge handles both dependency badges and third-party status badges (e.g., releases, container metrics, coverage), injecting them directly into your target documentation file (default README.md) so your badges are always accurate. It also supports generating previews and structured definitions for inspection or CI/CD workflows. By automating badge generation, Depbadge solves common problems: outdated badges, inconsistent styling, and manual maintenance overhead — keeping your documentation visually consistent and trustworthy.
9
+ </div>
10
10
 
11
11
  <br>
12
12
  <div align="center">
@@ -15,7 +15,7 @@ By automating badge generation, Depbadge solves common problems: outdated badges
15
15
 
16
16
  **`package.json`** – Node.js / JavaScript / TypeScript projects
17
17
  **`pyproject.toml`** – Python projects (PEP 621)
18
- **`Cargo.toml`** – Rust projects
18
+ **`Cargo.toml`** – Rust projects
19
19
 
20
20
  </div>
21
21
  <br>
@@ -27,8 +27,9 @@ By automating badge generation, Depbadge solves common problems: outdated badges
27
27
  ![github](https://img.shields.io/github/release/ehildt/depbadge?labelColor=333&style=for-the-badge&cacheSeconds=3600&color=b16425&logo=github&logoColor=b16425&logoWidth=40&branch=main)
28
28
  ![github](https://img.shields.io/github/stars/ehildt/depbadge?labelColor=333&style=for-the-badge&cacheSeconds=3600&color=b16425&logo=github&logoColor=b16425&logoWidth=40&branch=main)
29
29
  ![github](https://img.shields.io/github/license/ehildt/depbadge?labelColor=333&style=for-the-badge&cacheSeconds=3600&color=b16425&logo=github&logoColor=b16425&logoWidth=40&branch=main)
30
- ![codecov](https://img.shields.io/codecov/c/github/ehildt/depbadge?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=4021b0&logoWidth=40&style=for-the-badge&color=4021b0&branch=main)
31
- ![I_Love](https://img.shields.io/badge/I_Love-🍪🍪🍪-777?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=b4cf2a&logoWidth=40&style=for-the-badge)
30
+ [![codecov](https://img.shields.io/codecov/c/github/ehildt/depbadge?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=4021b0&logoWidth=40&style=for-the-badge&color=4021b0&branch=main)](https://about.codecov.io/)
31
+ [![My_favorite](https://img.shields.io/badge/My_favorite-🍪🍪🍪-777?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=b4cf2a&logoWidth=40&style=for-the-badge)](https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/)
32
+ [![socket](https://badge.socket.dev/npm/package/@ehildt/depbadge/1.1.4)](https://www.npmjs.com/package/@ehildt/depbadge)
32
33
 
33
34
  </div>
34
35
 
@@ -36,9 +37,10 @@ By automating badge generation, Depbadge solves common problems: outdated badges
36
37
 
37
38
  <div align="center">
38
39
 
39
- [![colord](https://img.shields.io/badge/colord-v2.9.3-bc1cc4.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=bc1cc4&logoWidth=40&style=for-the-badge)](https://www.npmjs.com/package/example_package)
40
- [![js-yaml](https://img.shields.io/badge/js_yaml-v4.1.1-6c3ad9.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=6c3ad9&logoWidth=40&style=for-the-badge)](https://www.npmjs.com/package/example_package)
41
- [![@iarna/toml](https://img.shields.io/badge/_iarna_toml-v2.2.5-d53f5d.svg?labelColor=333&cacheSeconds=3600&logo=toml&logoColor=d53f5d&logoWidth=40&style=for-the-badge)](https://www.npmjs.com/package/example_package)
40
+ [![colord](https://img.shields.io/badge/colord-v2.9.3-bc1cc4.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=bc1cc4&logoWidth=40&style=for-the-badge)](https://github.com/omgovich/colord)
41
+ [![js-yaml](https://img.shields.io/badge/js_yaml-v4.1.1-6c3ad9.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=6c3ad9&logoWidth=40&style=for-the-badge)](https://github.com/nodeca/js-yaml)
42
+ [![@iarna/toml](https://img.shields.io/badge/_iarna_toml-v2.2.5-d53f5d.svg?labelColor=333&cacheSeconds=3600&logo=toml&logoColor=d53f5d&logoWidth=40&style=for-the-badge)](https://github.com/iarna/iarna-toml)
43
+ [![yargs](https://img.shields.io/badge/yargs-v18.0.0-c0e01f.svg?labelColor=333&cacheSeconds=3600&logo=freebsd&logoColor=c0e01f&logoWidth=40&style=for-the-badge)](https://github.com/yargs/yargs)
42
44
 
43
45
  </div>
44
46
 
@@ -46,48 +48,42 @@ By automating badge generation, Depbadge solves common problems: outdated badges
46
48
 
47
49
  <div align="center">
48
50
 
49
- [![@changesets/cli](https://img.shields.io/badge/_changesets_cli-v2.30.0-82ba21.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=82ba21&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
50
- [![@eslint/js](https://img.shields.io/badge/_eslint_js-v10.0.1-7a23a9.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=7a23a9&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
51
- [![@types/eslint](https://img.shields.io/badge/_types_eslint-v9.6.1-d936d0.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=d936d0&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
52
- [![@types/jest](https://img.shields.io/badge/_types_jest-v30.0.0-1c5bca.svg?labelColor=333&cacheSeconds=3600&logo=jest&logoColor=1c5bca&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
53
- [![@types/node](https://img.shields.io/badge/_types_node-v25.4.0-d51a33.svg?labelColor=333&cacheSeconds=3600&logo=node&logoColor=d51a33&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
54
- [![@types/supertest](https://img.shields.io/badge/_types_supertest-v7.2.0-b41882.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=b41882&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
55
- [![depcheck](https://img.shields.io/badge/depcheck-v1.4.7-28a95e.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=28a95e&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
56
- [![dependency-cruiser](https://img.shields.io/badge/dependency_cruiser-v17.3.8-c22431.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=c22431&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
57
- [![dotenv-cli](https://img.shields.io/badge/dotenv_cli-v11.0.0-d53074.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=d53074&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
58
- [![eslint](https://img.shields.io/badge/eslint-v10.0.3-3f2ab7.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=3f2ab7&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
59
- [![eslint-config-prettier](https://img.shields.io/badge/eslint_config_prettier-v10.1.8-c4921c.svg?labelColor=333&cacheSeconds=3600&logo=prettier&logoColor=c4921c&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
60
- [![eslint-plugin-prettier](https://img.shields.io/badge/eslint_plugin_prettier-v5.5.5-d19d2e.svg?labelColor=333&cacheSeconds=3600&logo=prettier&logoColor=d19d2e&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
61
- [![eslint-plugin-simple-import-sort](https://img.shields.io/badge/eslint_plugin_simple_import_sort-v12.1.1-39d025.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=39d025&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
62
- [![eslint-plugin-sonarjs](https://img.shields.io/badge/eslint_plugin_sonarjs-v4.0.2-ca216a.svg?labelColor=333&cacheSeconds=3600&logo=sonar&logoColor=ca216a&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
63
- [![globals](https://img.shields.io/badge/globals-v17.4.0-2570b1.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=2570b1&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
64
- [![husky](https://img.shields.io/badge/husky-v9.1.7-2e81b8.svg?labelColor=333&cacheSeconds=3600&logo=husky&logoColor=2e81b8&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
65
- [![jest](https://img.shields.io/badge/jest-v30.3.0-2442bc.svg?labelColor=333&cacheSeconds=3600&logo=jest&logoColor=2442bc&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
66
- [![jest-extended](https://img.shields.io/badge/jest_extended-v7.0.0-db701f.svg?labelColor=333&cacheSeconds=3600&logo=jest&logoColor=db701f&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
67
- [![jest-junit](https://img.shields.io/badge/jest_junit-v16.0.0-6fd31d.svg?labelColor=333&cacheSeconds=3600&logo=jest&logoColor=6fd31d&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
68
- [![jiti](https://img.shields.io/badge/jiti-v2.6.1-2ab746.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=2ab746&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
69
- [![lint-staged](https://img.shields.io/badge/lint_staged-v16.3.3-dfba26.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=dfba26&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
70
- [![npm-check-updates](https://img.shields.io/badge/npm_check_updates-v19.6.3-1ec23c.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=1ec23c&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
71
- [![rimraf](https://img.shields.io/badge/rimraf-v6.1.3-24a85b.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=24a85b&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
72
- [![source-map-support](https://img.shields.io/badge/source_map_support-v0.5.21-2ecc39.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=2ecc39&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
73
- [![supertest](https://img.shields.io/badge/supertest-v7.2.2-de21a8.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=de21a8&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
74
- [![ts-jest](https://img.shields.io/badge/ts_jest-v29.4.6-1aa2cb.svg?labelColor=333&cacheSeconds=3600&logo=jest&logoColor=1aa2cb&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
75
- [![ts-loader](https://img.shields.io/badge/ts_loader-v9.5.4-1e46be.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=1e46be&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
76
- [![ts-node](https://img.shields.io/badge/ts_node-v10.9.2-c51b76.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=c51b76&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
77
- [![ts-unused-exports](https://img.shields.io/badge/ts_unused_exports-v11.0.1-5e26c0.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=5e26c0&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
78
- [![typescript](https://img.shields.io/badge/typescript-v5.9.3-4c2eb8.svg?labelColor=333&cacheSeconds=3600&logo=typescript&logoColor=4c2eb8&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
79
- [![typescript-eslint](https://img.shields.io/badge/typescript_eslint-v8.57.0-dc2e59.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=dc2e59&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
51
+ ![@changesets/cli](https://img.shields.io/badge/_changesets_cli-v2.30.0-82ba21.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=82ba21&logoWidth=40&style=flat-square)
52
+ ![@eslint/js](https://img.shields.io/badge/_eslint_js-v10.0.1-7a23a9.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=7a23a9&logoWidth=40&style=flat-square)
53
+ ![@types/eslint](https://img.shields.io/badge/_types_eslint-v9.6.1-d936d0.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=d936d0&logoWidth=40&style=flat-square)
54
+ ![@types/node](https://img.shields.io/badge/_types_node-v25.5.0-d51a33.svg?labelColor=333&cacheSeconds=3600&logo=node&logoColor=d51a33&logoWidth=40&style=flat-square)
55
+ ![depcheck](https://img.shields.io/badge/depcheck-v1.4.7-28a95e.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=28a95e&logoWidth=40&style=flat-square)
56
+ ![dependency-cruiser](https://img.shields.io/badge/dependency_cruiser-v17.3.9-c22431.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=c22431&logoWidth=40&style=flat-square)
57
+ ![dotenv-cli](https://img.shields.io/badge/dotenv_cli-v11.0.0-d53074.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=d53074&logoWidth=40&style=flat-square)
58
+ ![eslint](https://img.shields.io/badge/eslint-v10.0.3-3f2ab7.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=3f2ab7&logoWidth=40&style=flat-square)
59
+ ![eslint-config-prettier](https://img.shields.io/badge/eslint_config_prettier-v10.1.8-c4921c.svg?labelColor=333&cacheSeconds=3600&logo=prettier&logoColor=c4921c&logoWidth=40&style=flat-square)
60
+ ![eslint-plugin-prettier](https://img.shields.io/badge/eslint_plugin_prettier-v5.5.5-d19d2e.svg?labelColor=333&cacheSeconds=3600&logo=prettier&logoColor=d19d2e&logoWidth=40&style=flat-square)
61
+ ![eslint-plugin-simple-import-sort](https://img.shields.io/badge/eslint_plugin_simple_import_sort-v12.1.1-39d025.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=39d025&logoWidth=40&style=flat-square)
62
+ ![eslint-plugin-sonarjs](https://img.shields.io/badge/eslint_plugin_sonarjs-v4.0.2-ca216a.svg?labelColor=333&cacheSeconds=3600&logo=sonar&logoColor=ca216a&logoWidth=40&style=flat-square)
63
+ ![globals](https://img.shields.io/badge/globals-v17.4.0-2570b1.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=2570b1&logoWidth=40&style=flat-square)
64
+ ![husky](https://img.shields.io/badge/husky-v9.1.7-2e81b8.svg?labelColor=333&cacheSeconds=3600&logo=husky&logoColor=2e81b8&logoWidth=40&style=flat-square)
65
+ ![vitest](https://img.shields.io/badge/vitest-v4.1.0-80c026.svg?labelColor=333&cacheSeconds=3600&logo=vitest&logoColor=80c026&logoWidth=40&style=flat-square)
66
+ ![@vitest/coverage-v8](https://img.shields.io/badge/_vitest_coverage_v8-4.1.0-92d435.svg?labelColor=333&cacheSeconds=3600&logo=vitest&logoColor=92d435&logoWidth=40&style=flat-square)
67
+ ![jiti](https://img.shields.io/badge/jiti-v2.6.1-2ab746.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=2ab746&logoWidth=40&style=flat-square)
68
+ ![lint-staged](https://img.shields.io/badge/lint_staged-v16.4.0-dfba26.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=dfba26&logoWidth=40&style=flat-square)
69
+ ![npm-check-updates](https://img.shields.io/badge/npm_check_updates-v19.6.3-1ec23c.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=1ec23c&logoWidth=40&style=flat-square)
70
+ ![rimraf](https://img.shields.io/badge/rimraf-v6.1.3-24a85b.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=24a85b&logoWidth=40&style=flat-square)
71
+ ![source-map-support](https://img.shields.io/badge/source_map_support-v0.5.21-2ecc39.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=2ecc39&logoWidth=40&style=flat-square)
72
+ ![ts-loader](https://img.shields.io/badge/ts_loader-v9.5.4-1e46be.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=1e46be&logoWidth=40&style=flat-square)
73
+ ![ts-node](https://img.shields.io/badge/ts_node-v10.9.2-c51b76.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=c51b76&logoWidth=40&style=flat-square)
74
+ ![ts-unused-exports](https://img.shields.io/badge/ts_unused_exports-v11.0.1-5e26c0.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=5e26c0&logoWidth=40&style=flat-square)
75
+ ![typescript](https://img.shields.io/badge/typescript-v5.9.3-4c2eb8.svg?labelColor=333&cacheSeconds=3600&logo=typescript&logoColor=4c2eb8&logoWidth=40&style=flat-square)
76
+ ![typescript-eslint](https://img.shields.io/badge/typescript_eslint-v8.57.0-dc2e59.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=dc2e59&logoWidth=40&style=flat-square)
77
+ ![@types/yargs](https://img.shields.io/badge/_types_yargs-v17.0.35-9db92d.svg?labelColor=333&cacheSeconds=3600&logo=freebsd&logoColor=9db92d&logoWidth=40&style=flat-square)
80
78
 
81
79
  </div>
82
80
  <!-- DEPBADGE:END -->
83
81
 
84
82
  <br>
85
83
 
86
-
87
84
  <div align="center">
88
85
 
89
86
  [E-MAIL](mailto:eugen.hildt@gmail.com) &nbsp;—&nbsp; [WIKI](https://github.com/ehildt/depbadge/wiki) &nbsp;—&nbsp; [ISSUES](https://github.com/ehildt/depbadge/issues) &nbsp;—&nbsp; [DONATE](https://github.com/sponsors/ehildt)
90
87
 
91
-
92
88
  </div>
93
- <br>
89
+ <br>