New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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
Version published
Maintainers
2
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

rennia

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