UNPKG

4.98 kBMarkdownView Raw
1# Git Auto badger
2
3A 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)
4
5[//]: <> (start placeholder for auto-badger)
6
7
8[![Build Status](https://img.shields.io/travis/technikhil314/auto-badger.svg?style=flat-square&color=%23007a1f)](https://travis-ci.org/technikhil314/auto-badger)
9[![version](https://img.shields.io/npm/v/git-auto-badger.svg?style=flat-square)](https://npmjs.org/git-auto-badger)
10[![min size](https://img.shields.io/bundlephobia/min/git-auto-badger)](https://bundlephobia.com/result?p=git-auto-badger)
11[![mingzip size](https://img.shields.io/bundlephobia/minzip/git-auto-badger)](https://bundlephobia.com/result?p=git-auto-badger)
12[![license](https://img.shields.io/npm/l/git-auto-badger?color=%23007a1f)](https://github.com/technikhil314/auto-badger/blob/master/LICENSE)
13
14[![dependancies](https://img.shields.io/librariesio/release/npm/git-auto-badger?color=%23007a1f)](https://libraries.io/npm/git-auto-badger)
15[![all contributors](https://img.shields.io/github/all-contributors/technikhil314/auto-badger)](https://github.com/technikhil314/auto-badger/graphs/contributors)
16[![code of conduct](https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square)](https://github.com/technikhil314/auto-badger/blob/master/CODE_OF_CONDUCT.md)
17[![chat with community](https://img.shields.io/gitter/room/technikhil314/auto-badger?color=%23007a1f)](https://gitter.im/auto-badgerOA)
18
19[![stargazers](https://img.shields.io/github/stars/technikhil314/auto-badger?style=social)](https://github.com/technikhil314/auto-badger/stargazers)
20[![number of forks](https://img.shields.io/github/forks/technikhil314/auto-badger?style=social)](https://github.com/technikhil314/auto-badger/fork)
21[![Follow technikhil314 on twiter](https://img.shields.io/twitter/follow/technikhil314?label=Follow)](https://www.twitter.com/technikhil314)
22
23The badges are auto generated by [auto badger](https://github.com/technikhil314/auto-badger)
24
25[//]: <> (end placeholder for auto-badger)
26
27
28<br/>
29
30## Prerequisites
31
32Node >= 10.x.x
33
34<br/>
35
36## See the demo running here
37
38[![demo](https://raw.githubusercontent.com/technikhil314/my-static-assets/master/terminal-casts/auto-badger.svg)](https://raw.githubusercontent.com/technikhil314/my-static-assets/master/terminal-casts/auto-badger.svg)
39
40<br/>
41
42## Why
43
44Because 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
45
46![demo](https://img.shields.io/librariesio/release/npm/git-auto-badger?style=flat-square)
47
48<br/>
49
50## How to use
51
52### Install the cli
53
54```
55npm i -g git-auto-badger
56
57or
58
59yarn add -g git-auto-badger
60```
61### Add placeholder to add badges
62
63Add following markdown comment where you want the badges to appear
64
65```
66[//]: <> (start placeholder for auto-badger)
67```
68### Run the cli
69
70then run following in your project root directory
71
72```
73npx auto-badger
74```
75
76And whoo hoo you are done. All the necessary badges are added to your markdown.
77
78<br/>
79
80## What all things are supported
81
82This cli currently supports following providers from each category
83
841. VCS
85 - [Github](https://www.github.com/) [:heavy_check_mark:]
86 - [Gitlab](https://www.gitlab.com/) [Coming soon]
871. CI/CD
88 - [Travis CI](https://travis-ci.org/) [:heavy_check_mark:]
89 - [Github Actions (first Job)](https://github.com/features/actions) [:heavy_check_mark:]
90 - [Appveyor](https://www.appveyor.com/) [:heavy_check_mark:]
91 - [Circle CI](https://circleci.com/) [:heavy_check_mark:]
921. Coverage
93 - [Coveralls](https://coveralls.io/) [:heavy_check_mark:]
94 - [CodeCov](https://codecov.io/) [:heavy_check_mark:]
951. Package Managers
96 - [NPM](https://www.npmjs.com/) [:heavy_check_mark:]
97 - [PyPI](https://pypi.org/) [Coming soon]
981. License
99 - Github License File [:heavy_check_mark:]
1001. Code of Conduct
101 - Github CoC File [:heavy_check_mark:]
1021. Dependancies
103 - [Libraries.io for NPM](https://libraries.io/) [:heavy_check_mark:]
1041. Package size
105 - [Bundelphobia](https://bundlephobia.com/) [:heavy_check_mark:]
1061. Download Count
107 - [NPM Per month](https://npmcharts.com/) [:heavy_check_mark:]
1081. Social
109 - Github (Repo Stars, Fork) [:heavy_check_mark:]
110 - twitter (Follow user/org) [:heavy_check_mark:]
1111. Chat
112 - [Gitter](https://gitter.im/) [:heavy_check_mark:]
113 - [Spectrum](https://spectrum.chat/) [:heavy_check_mark:]
114 - [Discord](https://discord.com/) [:heavy_check_mark:]
115
116<br/>
117
118### How it works?
119
1201. It looks for different file in your project root directory. To decide what tools are you using. And generates badges based on it.
121
122 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