Socket
Socket
Sign inDemoInstall

generator-badges

Package Overview
Dependencies
460
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    generator-badges

Yeoman generator for adding badges to your README.md


Version published
Weekly downloads
1
Maintainers
1
Install size
50.8 MB
Created
Weekly downloads
 

Readme

Source

generator-badges

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Yeoman generator for adding badges to your README.md Works great as cli and with other generators too.

Install

npm install --global yo generator-badges

Usage

yo badges noPrompts -u i-am-user -p my-awesome-project -b travis,npm

This command creates README.md (if doesn't exist) or created one and put there follow rows on the top:

[![Build Status][travis-image]][travis-url]
[travis-url]: https://travis-ci.org/i-am-user/my-awesome-project
[travis-image]: https://img.shields.io/travis/i-am-user/my-awesome-project/master.svg?style=flat-square

[![NPM version][npm-image]][npm-url]
[npm-url]: https://npmjs.org/package/my-awesome-project
[npm-image]: https://img.shields.io/npm/v/my-awesome-project.svg?style=flat-square

OR

you can use prompt mode:

yo badge

Now supports follow badges in options:

  • appveyor — NPM version
  • npm — NPM version
  • travis — Travis CI
  • coveralls — coveralls.io
  • dependencies — dependency status
  • devDependencies — devDependency status
  • codeship — codeship build status
  • scrutinizer — scrutinizer code quality
  • werckerwercker.com

Composability

Composability is a way to combine smaller parts to make one large thing. Sort of like Voltron®

— Yeoman docs

Just plug in for generates badges into your README.md into your generator.

Install

npm install --save generator-badges

Compose

this.composeWith('badges', { options:  {
    'skip-install': this.options['skip-install'],
    config: {
        user: "i-am-user",
        project: "my-awesome-project",
        badges: ['travis', 'npm']
}}}, {
  local: require.resolve('generator-badges')
});

License

MIT © Aleksandr Filatov alfilatov.com

Keywords

FAQs

Last updated on 11 Sep 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc