24 lines
614 B
Markdown
24 lines
614 B
Markdown
# draw-captcha
|
|
****
|
|
**draw-captcha** is module for generation simple captcha images.
|
|
## Installation
|
|
```bash
|
|
npm i draw-captcha
|
|
```
|
|
## Simple usage
|
|
```js
|
|
const captcha = require("./");
|
|
|
|
const c = new captcha.MasterCaptcha(true);
|
|
c.setupRandomCaptcha("./here.jpg")
|
|
.then(r => console.log("Code is", r.code))
|
|
.catch(e => console.error(e));
|
|
```
|
|
## Examples of generated captcha's images
|
|

|
|
49uyc9o3
|
|

|
|
scygvmic
|
|

|
|
g4q3ppoh
|