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

rcaptcha

Package Overview
Dependencies
Maintainers
2
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 & Roalia#0001

  • 0.0.4-beta
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90.91%
Maintainers
2
Weekly downloads
 
Created
Source

rCaptcha® | Human Verification




Used Packages: canvas


Kullanılan Modüller: canvas




Developer: Swôth#9990 and Roalia#0001


Geliştirici: Swôth#9990 ve Roalia#0001




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 available...
    difficulty: "", // EASY, MEDIUM, HARD, VERYHARD is available...
    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 available...
    difficulty: "HARD", // EASY, MEDIUM, HARD, VERYHARD is available...
    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 available...
    difficulty: "HARD", // EASY, MEDIUM, HARD, VERYHARD is available...
    length: 10, // Length is must me between 4 and 12...
})

// captcha image link: newCaptcha.image.url
// example in discord.js: const x = new Discord.MessageAttachment(newCaptcha.image.buffer)
// 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.3 ▸ New developer (Roalia#0001) added, the number of lines has been reduced, automatic update add!!


0.0.2 ▸ A small bug was fixed!


0.0.1 ▸ Package created and published on NPM




by Swôth#9990 and Roalia#0001 (MIT)

Keywords

FAQs

Package last updated on 20 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