1.0.6 • Published 2 years ago

rcaptcha v1.0.6

Weekly downloads
11
License
MIT
Repository
github
Last release
2 years ago

rCaptcha® | Human Verification

npm npm

Used Packages: canvas

Installation


npm i --save rcaptcha
yarn add rcaptcha

Usage / Kullanım


import { Captcha } from 'rcaptcha'; // ESM
const { Captcha } = require('rcaptcha') // CJS
const newCaptcha = new rCaptcha({
    difficulty: "VERYHARD", // EASY, MEDIUM, HARD, VERYHARD is available...
    length: 10, //Length can be minimum 5, maximum 10.
    keywords: 'super-secret-keywords', // optional
    captcha: {
        backgroundColor: '#296CBC',
        textColor: '#fff',
        strokeColor: '#00000',
        backgroundImage: 'https://super-secret-image-url.com'
    } // Captcha settings is optional
});

let response = await newCaptcha.generate();

console.log(response);
/*
{
    difficulty: "VERYHARD",
    keywords: 'super-secret-keywords',
    length: 10,
    code: "super-secret-keywords", // random
    response: {
        dataURL: "imageurl",
        buffer: "buffercode"
    }
}
*/

Developed with 💙 by Loiren, Swôth. (MIT)

1.0.1

2 years ago

1.0.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

0.0.4-beta

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago