# ionic-captcha

> Arithmetic Captcha Component For Ionic 3

Latest version **1.0.1** (published 2019-05-14) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-05-14 |
| First published | 2019-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 43.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Oğuz AKPINAR |
| Maintainers | oguz.akpinar |
| Keywords | Ionic3, Captcha, ArithmeticValidation, IamNotRobot, RobotVerification |

## Links

- npm: https://www.npmjs.com/package/ionic-captcha
- Repository: https://github.com/oguzakpinar/ionic-captcha
- Homepage: https://github.com/oguzakpinar/ionic-captcha#readme
- Issues: https://github.com/oguzakpinar/ionic-captcha/issues
- npm.io page: https://npm.io/package/ionic-captcha

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-05-14
- 1.0.0 — 2019-05-14

## README

# Arithmetic Captcha Component For Ionic 3

This is an Ionic Angular component that ask arithmetic equation to user and check its result.

### For Download 
`npm install ionic-captcha`

## Usage

Add CaptchaProvider to your AppModule and add imports from used module CaptchaComponentModule. Then add `<captcha></captcha>` to your html file.
To use within FormControl add required validator and add form control name `  formControlName="captcha"`

At least usage shown like below. 
In Html Template 
`<captcha  formControlName="captcha"></captcha>`
In Controller
```ts
this.formBuilder.group({
	captcha: ['', Validators.required]
});
```

## Customization
User has 3 chance to find true solution otherwise regenerate captcha with new solution. In this 3 chance keyPress timeout is default 1500ms because of mobile platform but this is parametric. Developer change this timeout with **keypressTimeout** parameter.

Also there are four other parameters you can use and default values are given below.
|Parameter|Description|Default Value|
|-|-|-|
|useMinus|Use only plus operant or both|true|
|negativeAllowed|Result can be negative number|true|
|minNumLength|Minimum number of digits of numbers|1|
|maxNumLength|Maximum number of digits of numbers|2|

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