1.2.0 • Published 9 months ago

@captchafox/node v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@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);
1.2.0

9 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

2 years ago