You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-18Lines changed: 27 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
[](https://www.npmjs.com/package/@ptkdev/all-shields-cli)
1
+
[](https://www.npmjs.com/package/@ptkdev/all-shields-cli)
2
2
3
-
# 🦌 Badge generator of shields.io from .all-shieldsrc dotfile
3
+
# 🦌 Badges generator from dotfiles for any markdown
Tool to help automate your badges of shields.iofrom a dotfile for your markdown files. You can use Liquid variables like `{{name}}` or `{{version}}` which refer to your `package.json`. Inspired by [all-contributors-cli](https://www.npmjs.com/package/all-contributors-cli)
7
+
Tool to help automate your badges of shields.io, badgen.net, fury.io and snyk.io from `.all-shieldsrc` dotfile for your markdown files. You can use Liquid variables like `{{name}}` or `{{version}}` which refer to your `package.json`. Inspired by [all-contributors-cli](https://www.npmjs.com/package/all-contributors-cli)
8
8
9
9
## 🎁 Support: Donate
10
10
> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**
@@ -30,10 +30,17 @@ Tool to help automate your badges of shields.io from a dotfile for your markdown
30
30
## 💡 Features
31
31
*[✔️] Easy to use
32
32
*[✔️] MIT License
33
-
*[✔️] Tool to help automate your badges of shields.io from a dotfile for your markdown files. Inspired by all-contributors-cli
33
+
*[✔️] Support: shields.io
34
+
*[✔️] Support: fury.io
35
+
*[✔️] Support: snyk.io
36
+
*[✔️] Support: badgen.net
37
+
*[✔️] Full customizations!
38
+
*[✔️] Liquid Variables
39
+
*[✔️] Tool to help automate your badges on markdown.
40
+
*[✔️] Badges generator from dotfiles for any markdown
34
41
35
42
## 👔 Screenshot
36
-
[](https://raw.githubusercontent.com/ptkdev/all-shields-cli/nightly/.github/assets/screenshot/ptkdev-all-shields-cli-screen1.png)
43
+
[](https://raw.githubusercontent.com/ptkdev/all-shields-cli/nightly/.github/assets/screenshot/ptkdev-all-shields-cli-screen1.png)
37
44
38
45
## 🚀 Installation
39
46
1. In your node project run: `npm install @ptkdev/all-shields-cli --save-dev`
@@ -62,7 +69,8 @@ Tool to help automate your badges of shields.io from a dotfile for your markdown
62
69
"title":"package name",
63
70
"message":"{{name}}",
64
71
"style":"flat",
65
-
"logo":""
72
+
"logo":"",
73
+
"platform":"shields"
66
74
}
67
75
]
68
76
}
@@ -98,17 +106,18 @@ In your `.all-shieldsrc` dotfile you can use liquid variables like {{name}} or {
98
106
99
107
## 🧰 Options: Badges Array
100
108
101
-
| Parameter | Description | Values | Default value | Available since |
102
-
| --- | --- | --- | --- | --- |
103
-
| url | If you click on badge open this url |`string`| empty |**v1.0.0**|
104
-
| color | Badge hexcode color (right side) |`string` / `hexcode`|`lightgray`|**v1.0.0**|
105
-
| label | Badge text (left side) |`string`| empty |**v1.0.0**|
106
-
| title | Mouse hover alt text |`string`| empty |**v1.0.0**|
107
-
| message | Badge text (right side) |`string`| empty |**v1.0.0**|
| custom | Set custom string of image url (appended after domain url of badge service) |`string`| empty |`discord`, `shields`, `fury`, `snyk`, `badgen`|**v1.1.0**|
113
+
| url | If you click on badge open this url |`URI`| empty |`discord`, `shields`, `fury`, `snyk`, `badgen`|**v1.0.0**|
114
+
| color | Badge hexcode color (right side). NOTE: Overwrited if `custom` is set. |`string` / `hexcode`|`lightgray`|`shields`, `badgen`|**v1.0.0**|
115
+
| label | Badge text (left side). NOTE: Overwrited if `custom` is set. |`string`| empty |`shields`, `badgen`|**v1.0.0**|
116
+
| title | Mouse hover alt text |`string`| empty |`discord`, `shields`, `fury`, `snyk`, `badgen`|**v1.0.0**|
117
+
| message | Badge text (right side). NOTE: Overwrited if `custom` is set. |`string`| empty |`discord`, `shields`, `fury`, `snyk`, `badgen`|**v1.0.0**|
118
+
| style | Look of badge. NOTE: Overwrited if `custom` is set. |`plastic` / `flat` / `flat-square` / `for-the-badge` / `social`|`flat`|`shields`|**v1.0.0**|
119
+
| logo | Show logo (left side). NOTE: Overwrited if `custom` is set. | shields: `bitcoin` , `dependabot` , `discord` , `gitlab` , `npm` , `paypal` , `serverfault` , `stackexchange` , `superuser` , `telegram` , `travis` and more on [docs](https://shields.io/). <br><br> badgen: `airbnb`, `apple`, `appveyor`, `atom`, `awesome`, `azure`, `azurepipelines`, `bitcoin`, `buymeacoffee`, `chrome`, `circleci`, `cocoapods`, `codacy`, `codebeat`, `codeclimate`, `codecov`, `codeship`, `commonwl`, `deepscan`, `dependabot`, `discord`, `dockbit`, `docker`, `eclipse`, `firefox`, `flow`, `git`, `github`, `gitlab`, `gitter`, `googleplay`, `graphql`, `haskell`, `jsdelivr` and more on [docs](https://badgen.net/)| empty |`shields`, `badgen`|**v1.0.0**|
120
+
| server_id | if platform is discord, set your discord server_id |`DISCORD_SERVER_ID`| empty |`discord`|**v1.0.0**|
112
121
113
122
## 🔨 Developer Mode
114
123
1. Download [stable](https://github.com/ptkdev/all-shields-cli/archive/master.zip), [beta](https://github.com/ptkdev/all-shields-cli/archive/beta.zip) or [nightly](https://github.com/ptkdev/all-shields-cli/archive/nightly.zip) and extract it.
0 commit comments