JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 105
  • Score
    100M100P100Q85719F
  • License MIT

JS client for server-side usage of Private Captcha API

Package Exports

  • @private-captcha/private-captcha-js
  • @private-captcha/private-captcha-js/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@private-captcha/private-captcha-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

private-captcha-js

NPM Version badge CI

JavaScript client for server-side Private Captcha verification.

Please check the official documentation for the in-depth and up-to-date information.

Quick Start

  • Install private-captcha-js npm package
    npm install private-captcha-js
  • Instantiate the client and use verify() method
    import { createClient } from 'private-captcha-js';
    
    const client = createClient({ apiKey: 'your-api-key' });
    
    const result = await client.verify({ solution: 'captcha-solution-from-client' });
    if (result.ok()) {
        console.log('Captcha verified!');
    }
  • Use Express.js middleware using client.middleware() method

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues with this Javascript client, please open an issue on GitHub.

For Private Captcha service questions, visit privatecaptcha.com.