Print badges in your console.
npm i csbg
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"])
MIT © Doma