# @gaopeng123/message

> message

Latest version **1.3.7-alpha.1** (published 2024-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gaopeng123/message
pnpm add @gaopeng123/message
yarn add @gaopeng123/message
bun add @gaopeng123/message
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.7-alpha.1 |
| Published | 2024-08-08 |
| First published | 2022-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 59 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | ligaopeng123 |
| Maintainers | gaopeng123 |

## Links

- npm: https://www.npmjs.com/package/@gaopeng123/message
- Repository: https://github.com/ligaopeng123-npm/web-components-repo
- Homepage: https://github.com/ligaopeng123-npm/web-components-repo#readme
- Issues: https://github.com/ligaopeng123-npm/web-components-repo/issues
- npm.io page: https://npm.io/package/@gaopeng123/message

## Recent versions

- 1.3.7-alpha.1 (latest) — 2024-08-08
- 1.3.7-alpha.0 — 2024-08-08
- 1.3.6 — 2024-08-08
- 1.3.5 — 2024-01-30
- 1.3.2 — 2023-12-11
- 1.3.0 — 2023-12-04
- 1.2.16 — 2023-08-30
- 1.2.15 — 2023-08-17
- 1.2.13 — 2023-08-02
- 1.2.12 — 2023-08-02
- 1.2.11 — 2023-08-01
- 1.2.10 — 2023-07-27
- 1.0.2 — 2023-03-08
- 1.0.2-alpha.10 — 2023-03-08
- 1.0.2-alpha.6 — 2023-03-08
- … 36 more at https://npm.io/package/@gaopeng123/message/versions

## README

# message

> 消息信息

## Usage

```typescript
import {initMsg} from “@gaopeng123/message”;

// 初始化message 避免全局变量
const message = initMsg();

// 全局设置message的属性
message.config = {

};

type MsgConfig = {
    type?: 'info' | 'warning' | 'success' | 'error' | 'loading',
    showClose?: boolean,
    timeout?: number,
    animation?: boolean,
    autoClose?: boolean,
    content?: string,
    onClose?: any,
    maxNums?: number,
    html?: string;
};

// API
message.info('', config as MsgConfig);
message.warning('', config as MsgConfig);
message.success('', config as MsgConfig);
message.error('', config as MsgConfig);
message.loading('', config as MsgConfig);
```

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