An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# **c**on**s**ole.**b**ad**g**e()

Print badges in your console.

[![npm version](https://badgen.net/npm/v/csbg)](https://npm.im/csbg) [![npm downloads](https://badgen.net/npm/dm/csbg)](https://npm.im/csbg)

![Screenshot](./screenshot.png)

## 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)