# badge-author-info

> create badge of author info

Latest version **2.0.2** (published 2022-06-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install badge-author-info
pnpm add badge-author-info
yarn add badge-author-info
bun add badge-author-info
```

## 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 | 2.0.2 |
| Published | 2022-06-25 |
| First published | 2022-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yesw6a |
| Maintainers | wuhuanda |

## Links

- npm: https://www.npmjs.com/package/badge-author-info
- Repository: https://github.com/yesw6a/badge-author-info
- Homepage: https://github.com/yesw6a/badge-author-info#readme
- Issues: https://github.com/yesw6a/badge-author-info/issues
- npm.io page: https://npm.io/package/badge-author-info

## Recent versions

- 2.0.2 (latest) — 2022-06-25
- 2.0.1 — 2022-06-25
- 2.0.0 — 2022-06-25
- 1.0.3 — 2022-06-15
- 1.0.2 — 2022-06-15
- 1.0.1 — 2022-06-15
- 1.0.0 — 2022-06-15

## README

# Print badge in console

[简体中文](https://github.com/yesw6a/badge-author-info/blob/master/README-zh-CN.md) | English

# Install

## npm

```bash
npm i badge-author-info
```

## yarn

```bash
yarn add badge-author-info
```

## pnpm

```bash
pnpm i badge-author-info
```

# Usage

```js
import { logAuthorInfo, customBadge } from 'badge-author-info';

logAuthorInfo({}); // | cc | 583783099@qq.com |
logAuthorInfo({ author: 'author name', email: 'author@email.com' }); // | author name | author@email.com |
customBadge([
  { label: 'label1', value: 'value1' },
  { label: 'label2', value: 'value2' },
]); // Experience yourself, thx! QAQ
```

# Changelog

## v1.0.3

- Only print fixed information.

## v2.0.0

- Refactor by typescript.
- Provide many methods to print badge.
  - Default badge.
  - Custom badge.
  - Default style and custom value.

## v2.0.1

- Provide more languages `README`.

## v2.0.2

- Fix docs.

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