@gravitybot/captcha

1.1.3 • Public • Published

GravityBot Captcha

A simple npm package that will generate a random number in a captcha image for you!

Features

  • Based on canvas-constructor/skia
  • Easy to use
  • Medium difficulty against weak robots

Requirement

Installation

npm install @gravitybot/captcha

Example usage

Without number

const { Captcha } = require('@gravitybot/captcha');

(async () => {

    const captcha = await new Captcha().create();

    console.log(captcha); // This should return a random number

})();

With number

const { Captcha } = require('@gravitybot/captcha');

(async () => {

    const captcha = await new Captcha().create(1976);

    console.log(captcha); // This should return the entred number '1976'

})();

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @gravitybot/captcha

      Weekly Downloads

      3

      Version

      1.1.3

      License

      MIT

      Unpacked Size

      302 kB

      Total Files

      7

      Last publish

      Collaborators

      • gravitybot