# dp-create-badge

> Create badge based on supplied percentage

Latest version **1.0.0** (published 2018-02-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install dp-create-badge
pnpm add dp-create-badge
yarn add dp-create-badge
bun add dp-create-badge
```

Provides the command `dp-create-badge`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-02-13 |
| First published | 2018-02-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Jebakumar |
| Maintainers | daniepaul |
| Keywords | badge, create badge, coverage, npm badge |

## Links

- npm: https://www.npmjs.com/package/dp-create-badge
- Repository: https://github.com/daniepaul/dp-create-badge
- Homepage: https://github.com/daniepaul/dp-create-badge#readme
- Issues: https://github.com/daniepaul/dp-create-badge/issues
- npm.io page: https://npm.io/package/dp-create-badge

## Dependencies (1)

- [fs](https://npm.io/package/fs.md) 0.0.1-security

## Recent versions

- 1.0.0 (latest) — 2018-02-13

## README

# dp-create-badge
Create badge based on supplied percentage

## Installation
```bash
npm install dp-create-badge
```

alternatively you can also install it globally.

### Usage
```bash
./node_modules/.bin/dp-create-badge --PERCENTAGE 95
```
This will create a coverage.svg with percentage as 95%.

## Configuration
### Text
![Badge](https://raw.githubusercontent.com/daniepaul/dp-create-badge/master/badges/text.svg?sanitize=true)
```bash
./node_modules/.bin/dp-create-badge --TEXT custom
```

### Color
![Badge](https://raw.githubusercontent.com/daniepaul/dp-create-badge/master/badges/color.svg?sanitize=true)
```bash
./node_modules/.bin/dp-create-badge --COLOR blue
```

### Percentage
![Badge](https://raw.githubusercontent.com/daniepaul/dp-create-badge/master/badges/percentage.svg?sanitize=true)
```bash
./node_modules/.bin/dp-create-badge --PERCENTAGE 95
```
Note: If color is not supplied, the color code is automatically decided based on the percentage value.

### Filepath
```bash
./node_modules/.bin/dp-create-badge --FILEPATH ./badge.svg
```

---
_Source: https://npm.io/package/dp-create-badge · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
