Socket
Socket
Sign inDemoInstall

captcha-dot-js

Package Overview
Dependencies
46
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    captcha-dot-js

JavaScript Captcha Production Module


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Languages:

  • English (en)

JavaScript Captcha Production Module

How to use:

  • install:

npm:

npm i captcha-dot-js
  • import:
const captcha = require('captcha-dot-js');
  • using:

Using the module is just same as how you call a function, and then as an object you send inputs to it that include the following values, It is mandatory for them to enter the value, All values are boolean type; For example:

const captcha = require('captcha-dot-js');

(async () => {
  const myCaptcha = await captcha({
    numbers: true,
    lowercase: true,
    uppercase: true,
    symbols: false,
    difficulty : 1,
    path : './public'
  });
})();
ValueDescription
numbersIn captcha, have numbers or not
lowercaseIn captcha, have lowercase alphabet or not
uppercaseIn captcha, have uppercase alphabet or not
symbolsIn captcha, have symbols (special characters) or not
difficultyDetermines the hardness value of captcha
pathSpecifies the storage folder of captcha images
  • Recursive values:

‍‍The recursive values of an object is the same as the example below:

{ file_name: 'kvacjoxqjwlveibk.png', captcha: 'pkcsos' }

Values:

ValueDescription
file_nameName of the image file (which captcha is drawn in)
captchaCaptcha value (that is entered in photo)

Final sentence:

If you have problems or suggestions feel free to open issues; Also this module will be updated from time to time for security reasons, So don't forget to update!

Keywords

FAQs

Last updated on 23 Mar 2022

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