badge-author-info
v2.0.2
Published
create badge of author info
Downloads
4
Readme
Print badge in console
简体中文 | English
Install
npm
npm i badge-author-info
yarn
yarn add badge-author-info
pnpm
pnpm i badge-author-info
Usage
import { logAuthorInfo, customBadge } from 'badge-author-info';
logAuthorInfo({}); // | cc | [email protected] |
logAuthorInfo({ author: 'author name', email: '[email protected]' }); // | author name | [email protected] |
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.