Skip to content

SevenOutman/csbg

Repository files navigation

console.badge()

Print badges in your console.

npm version npm downloads

Screenshot

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

About

Print badges in your console.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project