1.0.7 • Published 3 years ago

arcaptcha-nodejs v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Validate and display captcha from Arcaptcha easily in nodejs.

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. |

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago