Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.36 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.36 KB

NodeJS Arcaptcha Component Library

Description

ARCaptcha Component Library for NodeJS

Arcaptcha is a drop-replacement for reCAPTCHA and hCaptcha that protects user privacy, rewards websites, and helps companies get their data labeled.

Sign up at Arcaptcha to get your sitekey today. You need a sitekey to use this library.

Installation

Install using npm:

npm i arcaptcha-nodejs

Usage

Before doing anything, please read the documentation.

const arcaptcha = require("arcaptcha-nodejs");
// Verify challenge
arcaptcha.verify(
  secret_key = "YOUR SECRET_KEY",
  site_key = "YOUR_SITE_KEY",
  challenge_id = "YOUR_CHALLENGE_ID"
).then((data) => {
  console.log(data);
});

// Display API script tag
arcaptcha.display_tag()

// Display captcha HTML tag
arcaptcha.displayCaptcha(YOUR_SITE_KEY)

Functions

You can use the following functions with captcha:

Function Parameters Description
display_tag() Display ARCaptcha javascript resource HTML code.
displayCaptcha() site_key, size, callback(default: None), theme, color(default: None),lang Display captcha HTML code with all parameter.