# webopendaddy-captcha

> 验证码小工具

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

## Install

```sh
npm install webopendaddy-captcha
pnpm add webopendaddy-captcha
yarn add webopendaddy-captcha
bun add webopendaddy-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.5 |
| Published | 2022-06-06 |
| First published | 2022-06-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | webopendaddy-captcha |
| Maintainers | xsq5201314 |
| Keywords | ct |

## Links

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

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2022-06-06

## README

#  验证码小物件 - 下载

```
npm i llikeeatbigdaxg-captcha -S
```

#  验证码小物件 - 使用

```
const captcha = require('llikeeatbigdaxg-captcha')
let temp = captcha.create(fontFamily,color,backgroundColor)
console.log(temp) // {text:'D3DS', data: '<svg></svg>'}
```


#  验证码小物件 - 结合HTTP模块

```
const http = require('http')
const captcha = require('llikeeatbigdaxg-captcha')

http.createServer((req, res) => {
    res.setHeader('content-type', 'text/html;charset=utf-8')
    let temp = captcha.create(fontFamily,color,backgroundColor) //字体样式，字体颜色，背景颜色
    // console.log(temp) // {text:'D3DS', data: '<svg></svg>'}
    res.end(temp.data)
}).listen(3000, () => {
    console.log('启动成功， 访问  http://localhost:3000');
})
```

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