
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
google-recaptcha-api
Advanced tools
A simple library of captcha based on Google reCAPTCHA Server API that supports Node.js.
A simple library of captcha based on Google reCAPTCHA Server API that supports Node.js.
npm install google-recaptcha-api --save
You can use google-recaptcha-v2 in browser.
const GoogleReCaptcha = require('google-recaptcha-api');
const captcha = new GoogleReCaptcha('your_server_captcha_key');
try {
const res = await captcha.validate('captcha_token', 'user_ip');
if (res.success) {
//The response token is valid.
} else {
//The response token is invalid.
}
} catch(e) {
//Some exception, such as network error => request timeout.
}
You can get server_captcha_key from Google reCAPTCHA Admin Console.
new GoogleReCaptcha(secret, host) => Create an instance of google-recaptcha-api.
instance.validate(response, remoteip) => Using the following API to ensure the response token is valid. Return value is a promise, you can use async-await synchronizing code.
google-recaptcha-api is MIT licensed.
FAQs
A simple library of captcha based on Google reCAPTCHA Server API that supports Node.js.
The npm package google-recaptcha-api receives a total of 1 weekly downloads. As such, google-recaptcha-api popularity was classified as not popular.
We found that google-recaptcha-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.