Sniff out relevant badges for GitHub repositories.
Badger can be used as a CLI: give it a repo slug, it gives you
Markdown back to add to your README.md
:
# Usage: badger <repo slug>
$ npx @47ng/badger franky47/douze
[](https://github.com/franky47/douze/blob/master/LICENSE)
[](https://travis-ci.com/franky47/douze)
[](https://isitmaintained.com/project/franky47/douze)
[](https://isitmaintained.com/project/franky47/douze)
Or you can call it programmatically:
import { getBadges, renderToMarkdown } from '@47ng/badger'
async function() {
const badges = await getBadges('47ng/badger')
console.log(renderToMarkdown(badges))
}
MIT - Made with ❤️ by François Best.