Add badges to README.md

pull/3/head
Amio 2018-06-23 01:20:48 +08:00
rodzic abfb354648
commit e3a92a6c0d
1 zmienionych plików z 18 dodań i 5 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
# badgen
# badgen [![npm-version][npm-badge]][npm-link] [![install size][pp-badge]][pp-link]
Fast, handcraft, pure JavaScript badge generator.
@ -6,15 +6,28 @@ Fast, handcraft, pure JavaScript badge generator.
### Micro Service
https://badgen.now.sh/badge/:subject/:status/:color
`https://badgen.now.sh/badge/:subject/:status/:color`
- `subject` Text
- `status` Text
- `color` RGB color (default '4C1')
- `color` RGB color (default '3C1')
![](https://badgen.now.sh/badge/build/passing)
![](https://badgen.now.sh/badge/style/standard/f2a)
Examples:
| Preview | URL |
| --- | --- |
|![](https://badgen.now.sh/badge/build/passing) | https://badgen.now.sh/badge/build/passing |
|![](https://badgen.now.sh/badge/style/standard/f2a) | https://badgen.now.sh/badge/style/standard/f2a |
|![](https://badgen.now.sh/badge/license/Apache-2.0/07C) | https://badgen.now.sh/badge/license/Apache-2.0/07C |
### As npm package
```npm install badgen```
## License
MIT @ Amio
[npm-badge]: https://img.shields.io/npm/v/badgen.svg
[npm-link]: https://www.npmjs.com/package/badgen
[pp-badge]: https://packagephobia.now.sh/badge?p=badgen
[pp-link]: https://packagephobia.now.sh/result?p=badgen