Skip to content

Instantly share code, notes, and snippets.

@jacobheun
Last active April 14, 2019 14:45
Show Gist options
  • Save jacobheun/1da73586478b6e0de976119bd250392b to your computer and use it in GitHub Desktop.
Save jacobheun/1da73586478b6e0de976119bd250392b to your computer and use it in GitHub Desktop.
Generate badges

A crude script for generating libp2p repo badges.

./badges.js <project> # where project is the name of the repo in the libp2p org

badges.js

#!/usr/bin/env node
'use strict'

const repo = process.argv[2]

const badges = `[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)
[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
[![](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p)
[![Discourse posts](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg)](https://discuss.libp2p.io)
[![](https://img.shields.io/codecov/c/github/libp2p/${repo}.svg?style=flat-square)](https://codecov.io/gh/libp2p/${repo})
[![](https://img.shields.io/travis/libp2p/${repo}.svg?style=flat-square)](https://travis-ci.com/libp2p/${repo})
[![Dependency Status](https://david-dm.org/libp2p/${repo}.svg?style=flat-square)](https://david-dm.org/libp2p/${repo})
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)`

console.log(badges)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment