# nw-confirm

> nw-confirm

Latest version **2.6.1** (published 2021-01-12) · 0 weekly downloads

## Install

```sh
npm install nw-confirm
pnpm add nw-confirm
yarn add nw-confirm
bun add nw-confirm
```

## 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.6.1 |
| Published | 2021-01-12 |
| First published | 2017-12-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | azgaga, liushichuan, yaochen, shenyuan, aflyermin, ignous, jeekdong, wuww5511 |

## Links

- npm: https://www.npmjs.com/package/nw-confirm
- npm.io page: https://npm.io/package/nw-confirm

## Recent versions

- 2.6.1 (latest) — 2021-01-12
- 2.3.2 — 2020-12-17
- 2.3.1 — 2020-12-17
- 2.3.0 — 2020-12-17
- 2.2.3 — 2020-11-11
- 1.25.3 — 2019-05-23
- 1.21.9 — 2018-10-19
- 1.21.8 — 2018-10-19
- 1.12.11 — 2017-12-20
- 1.12.10 — 2017-12-20
- 0.0.6 — 2017-12-11
- 0.0.5 — 2017-12-11
- 0.0.4 — 2017-12-11
- 0.0.3 — 2017-12-11
- 0.0.2 — 2017-12-11
- … 1 more at https://npm.io/package/nw-confirm/versions

## README

# nw-confirm

## 安装
`$ yarn add nw-confirm`

## 使用
```
import confirm from 'nw-confirm'

confirm({
    content: '我是一些内容，很长的内容爱啦啦阿拉啦啦啦啦啦',
    okText: '确定',
    cancelText: '取消'
}).then(() => {
    console.log('确定')
}).catch(() => {
    console.log('取消')
})
```

接受的参数
```
{
    content = '', 
    okText = '确定', 
    cancelText = '取消',
    maskClosable = true,
    maskStyle = {},
    maskClassName = ''
}
```

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