# captcha-generator

> Production image verification code by jpeglib

Latest version **0.9.4** (published 2017-04-18) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.4 |
| Published | 2017-04-18 |
| First published | 2017-04-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | fei.chen |
| Maintainers | com-melot-kk-web |
| Keywords | verification, ccap, image, captcha |

## Links

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

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.9.4 (latest) — 2017-04-18
- 0.9.3 — 2017-04-18
- 0.9.2 — 2017-04-12

## README

## Install

```
$ npm install --save captcha-generator
```
# Overview
This is a captcha generator that can only generate image verification code because I do not like [ccap](https://github.com/DoubleSpout/ccap), ccap uses not only trouble but also low performance and easy memory leak. captcha-generator can also be used across platforms.
![preview](https://apk.kktv8.com/share/other/cg.bmp)

# Usage
`import {generate, createPlaintext} from "captcha-generator" `

# Get the verification code by default
```
const cimg = generate();
const {base64, plaintext, buffer, imageType} = cimg;
```

# Customize picture content and width and height
```
const cimg = generate({
	text: createPlaintext(6),
    width: 500,
    height: 200,
    fontSize: 200
} )；
const {base64, plaintext, buffer, imageType} = cimg;
```

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