# captcha-dot-js

> JavaScript Captcha Production Module

Latest version **3.0.1** (published 2022-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install captcha-dot-js
pnpm add captcha-dot-js
yarn add captcha-dot-js
bun add captcha-dot-js
```

## 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 | 3.0.1 |
| Published | 2022-03-23 |
| First published | 2022-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | hamidrezadev |
| Keywords | captcha, captcha.js, captcha dot js |

## Links

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

## Dependencies (2)

- [sharp](https://npm.io/package/sharp.md) ^0.30.1
- [generate-password](https://npm.io/package/generate-password.md) ^1.7.0

## Recent versions

- 3.0.1 (latest) — 2022-03-23
- 3.0.0 — 2022-03-23
- 2.0.0 — 2022-03-02
- 1.1.5 — 2022-02-20

## README

# Languages:
- [English (en)](#javascript-captcha-production-module)

# JavaScript Captcha Production Module

## How to use:

- install:

npm:
```bash
npm i captcha-dot-js
```

- import:

```javascript
const captcha = require('captcha-dot-js');
```

- using:

Using the module is just same as how you call a function, and then as an object you send inputs to it that include the following values, It is mandatory for them to enter the value, All values are boolean type; For example:

```javascript
const captcha = require('captcha-dot-js');

(async () => {
  const myCaptcha = await captcha({
    numbers: true,
    lowercase: true,
    uppercase: true,
    symbols: false,
    difficulty : 1,
    path : './public'
  });
})();
```

| Value           	| Description                                          	|
|-----------------	|------------------------------------------------------	|
| ```numbers```   	| In captcha, have numbers or not                      	|
| ```lowercase``` 	| In captcha, have lowercase alphabet or not           	|
| ```uppercase``` 	| In captcha, have uppercase alphabet or not           	|
| ```symbols```   	| In captcha, have symbols (special characters) or not 	|
| ```difficulty```   	| Determines the hardness value of captcha  	|
| ```path```   	| Specifies the storage folder of captcha images   	|



- Recursive values:

‍‍The recursive values of an object is the same as the example below:

```javascript
{ file_name: 'kvacjoxqjwlveibk.png', captcha: 'pkcsos' }
```

Values:
| Value           	| Description                                        	|
|-----------------	|----------------------------------------------------	|
| ```file_name``` 	| Name of the image file (which captcha is drawn in) 	|
| ```captcha```   	| Captcha value (that is entered in photo)           	|

## Final sentence:

If you have problems or suggestions feel free to open issues; Also this module will be updated from time to time for security reasons, So don't forget to update!

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