# webopenuncle-captcha

> 这是一个验证码

Latest version **1.0.0** (published 2022-06-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install webopenuncle-captcha
pnpm add webopenuncle-captcha
yarn add webopenuncle-captcha
bun add webopenuncle-captcha
```

## 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 | 2022-06-06 |
| First published | 2022-06-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | webopenuncle |

## Links

- npm: https://www.npmjs.com/package/webopenuncle-captcha
- npm.io page: https://npm.io/package/webopenuncle-captcha

## Dependencies (1)

- [svg-captcha](https://npm.io/package/svg-captcha.md) ^1.4.0

## Recent versions

- 1.0.0 (latest) — 2022-06-06

## README

# 验证码下载

```
npm i webopenuncle-captcha -S
```

# 验证码使用
```
const captcha = require('webopenfather-captcha')
let temp = captcha.create()
console.log(temp) // {text:'D3DS', data: '<svg></svg>'}
```

# 验证码结合HTTP模块
```
const http = require('http')
const captcha = require('webopenuncle-captcha')

http.createServer((req, res) => {
    res.setHeader('content-type', 'text/html;charset=utf-8')
    let temp = captcha.create()
    // console.log(temp) // {text:'D3DS', data: '<svg></svg>'}
    res.end(temp.data)
}).listen(3000, () => {
    console.log('启动成功， 访问  http://localhost:3000');
})
```

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