clux / badgify

Rebuild readme markdown badges from package.json
MIT License
13 stars 0 forks source link

Badgify

npm status build status dependency status coverage status

This package will generate stable links and markdown syntax for npm modules. In particular it outputs syntax for npm, travis, david, coveralls & stability badge svgs so you can easily paste them to your readme.

Usage

Install (with -g or npm link the install), and use in a package root:

$ badgify

Example output (from badgify folder):

[![npm status](http://img.shields.io/npm/v/badgify.svg)](https://www.npmjs.org/package/badgify)
[![build status](https://secure.travis-ci.org/clux/badgify.svg)](http://travis-ci.org/clux/badgify)
[![dependency status](https://david-dm.org/clux/badgify.svg)](https://david-dm.org/clux/badgify)
[![coverage status](http://img.shields.io/coveralls/clux/badgify.svg)](https://coveralls.io/r/clux/badgify)

Then copy paste that to the start of your README.md. For speed you could pipe it through xclip, or just use it to generate a basic README:

echo "# $(basename $PWD)" > README.md
badgify >> README.md

How

License

MIT-Licensed. See LICENSE file for details.