Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-badge

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-badge

Generate badges for your readme

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

generator-badge

travis status npm version npm license npm download npm download david dependency david dev-dependency wercker status wercker status GitHub followers GitHub forks GitHub stars GitHub watchers GitHub issues

Generate badges for your readme

Installation

$ npm install --save --global generator-badge

Example

BEFORE

README.md:

# MY-AWESOME-PROJECT
<!-- badge -->
<!-- endbadge -->

THEN YOU DO

Terminal:

awesome-project$ badge install travis npm-version

WHAT YOU GET

README.md:

# MY-AWESOME-PROJECT
<!-- badge -->
[![travis](https://img.shields.io/travis/tanhauhau/awesome-project.svg)](https://travis-ci.org/tanhauhau/awesome-project)
[![npm-version](https://img.shields.io/npm/v/awesome-project.svg)](https://www.npmjs.com/package/awesome-project)
<!-- endbadge -->

Usage

Install badges

$ badge install <badges> [<args>]

You can specify required field values into arguments:

$ badge install travis --repo-username=tanhauhau --repo-name=awesome-project

For field values that is missing, badge will prompt you to enter.

$ badge install travis
  Inferring information needed...
  ? repo-username: tanhauhau
  ? repo-name: awesome-project
  Preparing the badges...
  Looking for README...
  Injecting badges into README...
  Done :)

List of all badges available

$ badge list <badges>

You can list all the badges available

$ badge list

listing

Or list specified badges only

$ badge list apm tavis

listing

Note typo in Travis.

Help

$ badge help <badge>
$ badge help travis
 travis-default
 Build apps with confidence.
 Description : Travis build status of master branch
 Fields      : repo-username, repo-name

Clear

$ badge clear

Remove all badges

Badges Available

See a list of badges available here.

Todo List

  • Find README of various format: markdown, textile, rdoc, rst, pod, html
  • Inferring git, svn repo information
  • Storing global preferences, eg: able to remember author name in global
  • Storing local preferences, eg: able to remember repo info in local package
  • Filename as argument
  • More badges available

Badge credits to

shields.io

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Keywords

FAQs

Package last updated on 07 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc