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

rcaptcha

Package Overview
Dependencies
Maintainers
1
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

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

rCaptcha® | Human Verification




Used Packages: canvas and latest-version


Kullanılan Modüller: canvas ve latest-version




Developer: Swôth#9990


Geliştirici: Swôth#9990




Usage / Kullanım



EN: First we have to define the package.
TR: İlk olarak modülü tanımlamalıyız.
const rCaptcha = require('rcaptcha')

EN: Let's see how to create a captcha.
TR: Nasıl captcha oluşturulduğuna bakalım.
const rCaptcha = require('rcaptcha')
const newCaptcha = new rCaptcha({
    language: "", // TR or EN is avalable...
    difficulty: "", // EASY, MEDIUM, HARD, VERYHARD is avalable...
    length: 4, // Length is must me between 4 and 12...
})

EN: Let's see the response.
TR: Yanıtı görelim.
const rCaptcha = require('rcaptcha')
const newCaptcha = new rCaptcha({
    language: "EN", // TR or EN is avalable...
    difficulty: "HARD", // EASY, MEDIUM, HARD, VERYHARD is avalable...
    length: 10, // Length is must me between 4 and 12...
})
console.log(newCaptcha)
//Console:
/*
{
    language: "EN",
    difficulty: "HARD",
    length: 10,
    code: "KJADJAD", // random
    image: {
        url: "imageurl",
        buffer: "buffercode"
    }
}
*/

EN: Let's move on to using Captcha.
TR: Captcha kullanımına geçelim.
const rCaptcha = require('rcaptcha')
const newCaptcha = new rCaptcha({
    language: "EN", // TR or EN is avalable...
    difficulty: "HARD", // EASY, MEDIUM, HARD, VERYHARD is avalable...
    length: 10, // Length is must me between 4 and 12...
})

// captcha image link: newCaptcha.image.url
// example in html: <img src=" + newCaptcha.image.url + ">

const input = "TEST" // your input
if (input !== newCaptcha.code) {
    console.log("Captcha failed!")
} else {
    console.log("Captcha was passed!")
}




Updates / Güncellemeler



0.0.2 ▸ A small bug was fixed!


0.0.1 ▸ Package created and published on NPM




by Swôth#9990 (MIT)

Keywords

FAQs

Package last updated on 19 Oct 2020

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