A npm cli tool that reads your packagejson/project metadata and git config and connects your readme with multiple badge providers (shields.io, badgen.net etc)
👏 & ❤️ to auto badger for making badging simple
- Git Auto badger
- Facing Problems
- Contributions
- 06 Mar 2021
- Added -e/--exclude option to opt out of some badges
- 08 Nov 2020
- Added -p option for passing custom path to your markdown
- 01 Nov 2020
- Using meow and update notifier
- Removing accidentally added npm package. A total blunder :(
- 18 Oct 2020
- Using find-up to search files. Now you can use this with monorepos too.
Node >= 10.x.x
- Copy pasting / creating badges on shields.io such a robotic job.
- Some of the default provided badges lacks of some of the accessibility constraint. White on green does not meet the required contrast ratio. See the badge below for example it will be difficult for low vision people to read it
npm i -g git-auto-badger
or
yarn add -g git-auto-badger
Add following markdown comment where you want the badges to appear
[//]: <> (start placeholder for auto-badger)
then run following in your project root directory
npx auto-badger
And whoo hoo you are done. All the necessary badges are added to your markdown.
This cli currently supports following providers from each category
- VCS
- CI/CD
- Travis CI [:heavy_check_mark:]
- Github Actions (first Job) [:heavy_check_mark:]
- Appveyor [:heavy_check_mark:]
- Circle CI [:heavy_check_mark:]
- Coverage
- Package Managers
- License
- Github License File [:heavy_check_mark:]
- Code of Conduct
- Github CoC File [:heavy_check_mark:]
- Dependancies
- Libraries.io for NPM [:heavy_check_mark:]
- Package size
- Bundelphobia [:heavy_check_mark:]
- Download Count
- NPM Per month [:heavy_check_mark:]
- Social
- Github (Repo Stars, Fork) [:heavy_check_mark:]
- twitter (Follow user/org) [:heavy_check_mark:]
- Chat
-
It looks for different file in your project root directory. To decide what tools are you using. And generates badges based on it.
e.g. If you have .travis.yml then it assumes you are using travis for CI/CD and it creates a dynamic badge for travis latest build status
or
if you have appveyor.yml then it assumes you are using appveyor for CI/CD and it creates a dynamic badge for appveyor latest build status
Badge Type | Default |
---|---|
Size | Bundle phobia (if browser only package) |
Size | package phobia (if node only package e.g cli) |
Also you can appreciate by
Please let me know if you are facing any issues here
Would ❤️ to see any contributions.
- Fork this repo
cd auto-badger
npm link
- Make changes
auto-badger
- Check and make sure all badges are generated properly