Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/badgen/badgen-cli

Use the fastest badge generator from your CLI
https://github.com/badgen/badgen-cli

cli generator icon svg

Last synced: 5 days ago
JSON representation

Use the fastest badge generator from your CLI

Awesome Lists containing this project

README

        

# badgen-cli

[![npm version][npm-src]][npm-href]
[![Install size][packagephobia-src]][packagephobia-href]
[![License][license-src]][license-href]

Use the fastest badge generator from your CLI.

## Installation

$ npm install -g badgen-cli

## Usage

$ badgen --subject build --status ok --color green > build-ok.svg

## Options

* `--status`, `-s`

String, right-hand side of the badge (required)
* `--subject`, `-j`

String, left-hand side of the badge
* `--color`, `-c`

String, color for the status (color name or RGB hexa value)
* `--flat`, `-f`

Boolean, use the flat style badge
* `--icon`, `-i`

String, icon before the subject (icon name, image data URI or inferred from the subject)
* `--icon-width`, `-w`

Number, width of the icon if not square

## See also

- [badgen](https://github.com/badgen/badgen), the module behind this CLI.

[npm-src]: https://badgen.net/npm/v/badgen-cli
[npm-href]: https://www.npmjs.com/package/badgen-cli
[packagephobia-src]: https://badgen.net/packagephobia/install/badgen-cli
[packagephobia-href]: https://packagephobia.now.sh/result?p=badgen-cli
[license-src]: https://badgen.net/github/license/badgen/badgen-cli
[license-href]: LICENSE