Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rcaptcha

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rcaptcha

rCaptcha Human Verification | by Swôth#9990 & Loiren#0555 & Roalia#0001

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

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",
    length: 10,
    code: "super-secret-keywords", // random
    response: {
        dataURL: "imageurl",
        buffer: "buffercode"
    }
}
*/

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

Keywords

FAQs

Package last updated on 24 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc