git-auto-badger
Version:
A npm cli tool that reads your package.json/project metadata and git config and connects your readme with multiple badge providers (shields.io, badgen.net etc)
123 lines (84 loc) • 4.98 kB
Markdown
# Git Auto badger
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)
[//]: <> (start placeholder for auto-badger)
[](https://travis-ci.org/technikhil314/auto-badger)
[](https://npmjs.org/git-auto-badger)
[](https://bundlephobia.com/result?p=git-auto-badger)
[](https://bundlephobia.com/result?p=git-auto-badger)
[](https://github.com/technikhil314/auto-badger/blob/master/LICENSE)
[](https://libraries.io/npm/git-auto-badger)
[](https://github.com/technikhil314/auto-badger/graphs/contributors)
[](https://github.com/technikhil314/auto-badger/blob/master/CODE_OF_CONDUCT.md)
[](https://gitter.im/auto-badgerOA)
[](https://github.com/technikhil314/auto-badger/stargazers)
[](https://github.com/technikhil314/auto-badger/fork)
[](https://www.twitter.com/technikhil314)
The badges are auto generated by [auto badger](https://github.com/technikhil314/auto-badger)
[//]: <> (end placeholder for auto-badger)
<br/>
## Prerequisites
Node >= 10.x.x
<br/>
## See the demo running here
[](https://raw.githubusercontent.com/technikhil314/my-static-assets/master/terminal-casts/auto-badger.svg)
<br/>
## Why
Because why not? I did not find any such tool out there to minimise efforts of such a robotic job. Plus some of the default provided badges lack of accessibility constrint. White on green does not meet any contrast ratio. See the badge below for example it will be difficult for low vision people to read it

<br/>
## How to use
### Install the cli
```
npm i -g git-auto-badger
or
yarn add -g git-auto-badger
```
### Add placeholder to add badges
Add following markdown comment where you want the badges to appear
```
[//]: <> (start placeholder for auto-badger)
```
### Run the cli
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.
<br/>
## What all things are supported
This cli currently supports following providers from each category
1. VCS
- [Github](https://www.github.com/) [:heavy_check_mark:]
- [Gitlab](https://www.gitlab.com/) [Coming soon]
1. CI/CD
- [Travis CI](https://travis-ci.org/) [:heavy_check_mark:]
- [Github Actions (first Job)](https://github.com/features/actions) [:heavy_check_mark:]
- [Appveyor](https://www.appveyor.com/) [:heavy_check_mark:]
- [Circle CI](https://circleci.com/) [:heavy_check_mark:]
1. Coverage
- [Coveralls](https://coveralls.io/) [:heavy_check_mark:]
- [CodeCov](https://codecov.io/) [:heavy_check_mark:]
1. Package Managers
- [NPM](https://www.npmjs.com/) [:heavy_check_mark:]
- [PyPI](https://pypi.org/) [Coming soon]
1. License
- Github License File [:heavy_check_mark:]
1. Code of Conduct
- Github CoC File [:heavy_check_mark:]
1. Dependancies
- [Libraries.io for NPM](https://libraries.io/) [:heavy_check_mark:]
1. Package size
- [Bundelphobia](https://bundlephobia.com/) [:heavy_check_mark:]
1. Download Count
- [NPM Per month](https://npmcharts.com/) [:heavy_check_mark:]
1. Social
- Github (Repo Stars, Fork) [:heavy_check_mark:]
- twitter (Follow user/org) [:heavy_check_mark:]
1. Chat
- [Gitter](https://gitter.im/) [:heavy_check_mark:]
- [Spectrum](https://spectrum.chat/) [:heavy_check_mark:]
- [Discord](https://discord.com/) [:heavy_check_mark:]
<br/>
### How it works?
1. 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