Socket
Socket
Sign inDemoInstall

@captchafox/node

Package Overview
Dependencies
0
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

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)


Version published
Maintainers
2
Install size
8.28 kB
Created

Readme

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

FAQs

Last updated on 25 Feb 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc