csbg
v0.1.3
Published
Print badges in the console
Downloads
8
Readme
console.badge()
Print badges in your console.
Install
npm i csbg
Usage
Use printBadge()
function to print a shields.io style badge in your console.
import { printBadge } from "csbg"
printBadge("npm", "v1.0.0", "#007ec6")
Or you can install .badge()
method on console
.
import "csbg/install"
console.badge("npm", "v1.0.0", "#007ec6")
Print multiple badges in a row with printBadges()
import { printBadges } from "csbg"
printBadges(["npm", "v1.0.0", "#007ec6"], ["CI", "passing", "#34D058"])
Or you can install .badges()
method on console
.
import "csbg/install"
console.badges(["npm", "v1.0.0", "#007ec6"], ["CI", "passing", "#34D058"])
License
MIT © Doma