https://github.com/sevenoutman/csbg
Print badges in your console.
https://github.com/sevenoutman/csbg
badge console
Last synced: 11 months ago
JSON representation
Print badges in your console.
- Host: GitHub
- URL: https://github.com/sevenoutman/csbg
- Owner: SevenOutman
- License: mit
- Created: 2023-04-25T04:07:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-22T12:21:06.000Z (over 2 years ago)
- Last Synced: 2025-06-05T19:52:16.511Z (about 1 year ago)
- Topics: badge, console
- Language: TypeScript
- Homepage:
- Size: 73.2 KB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# **c**on**s**ole.**b**ad**g**e()
Print badges in your console.
[](https://npm.im/csbg) [](https://npm.im/csbg)

## Install
npm i csbg
## Usage
Use `printBadge()` function to print a shields.io style badge in your console.
```js
import { printBadge } from "csbg"
printBadge("npm", "v1.0.0", "#007ec6")
```
Or you can install `.badge()` method on `console`.
```js
import "csbg/install"
console.badge("npm", "v1.0.0", "#007ec6")
```
Print multiple badges in a row with `printBadges()`
```js
import { printBadges } from "csbg"
printBadges(["npm", "v1.0.0", "#007ec6"], ["CI", "passing", "#34D058"])
```
Or you can install `.badges()` method on `console`.
```js
import "csbg/install"
console.badges(["npm", "v1.0.0", "#007ec6"], ["CI", "passing", "#34D058"])
```
## License
MIT © [Doma](https://github.com/SevenOutman)