You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@captchafox/node

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@captchafox/node

[![NPM version](https://img.shields.io/npm/v/@captchafox/node.svg)](https://www.npmjs.com/package/@captchafox/node)

1.4.0
latest
Source
npmnpm
Version published
Weekly downloads
218
2.83%
Maintainers
0
Weekly downloads
 
Created
Source

@captchafox/node

NPM version

Installation

Install the library using your prefered package manager

npm install @captchafox/node
yarn add @captchafox/node
pnpm add @captchafox/node
bun add @captchafox/node

Usage

ESM / await

import { verify } from '@captchafox/node';

const secret = 'organization_secret';
const token = 'widget_token';

try {
  const data = await verify(secret, token);
  if (data.success) {
    console.log('success!', data);
  } else {
    console.log('verification failed');
  }
} catch (error) {
  console.log(error);
}

Require

const { verify } = require('@captchafox/node');

const secret = 'organization_secret';
const token = 'widget_token';

verify(secret, token)
  .then((data) => {
    if (data.success) {
      console.log('success!', data);
    } else {
      console.log('verification failed');
    }
  })
  .catch(console.error);

Keywords

node

FAQs

Package last updated on 20 Jan 2025

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