Skip to content

arcaptcha/arcaptcha-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

ARCaptcha Component Library for NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published