Socket
Socket
Sign inDemoInstall

captcha-plus

Package Overview
Dependencies
67
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    captcha-plus

Best Captcha Ever!


Version published
Weekly downloads
6
decreased by-66.67%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

npm install captcha-plus

Usages

const captcha = require("captcha-plus");
const fs = require("fs");

captcha.create("id"); 
//Create User Code [This has no time]


captcha.user("id");
/* Give
{
  user: "id",
  code: "user code"
}
*/

captcha.convert(captcha.user("id").code);
/* Give
{
  buffer: <buffer...,
  base64: 'data:image/png;base64....'
}
*/

const code = captcha.convert(captcha.user("id").code).buffer; 
//Give You Buffer (Recommended)


fs.writeFileSync("captcha.png", code); 
//Converts Buffer to Image (Saved Image)


captcha.convert(captcha.user("id").code).base64; 
//Gives You Base64


captcha.check("id", code); 
//If true, returns "true" else returns "false". [Type: boolean]

Changelog

  • 2.5.2
+ Fixed Bugs
  • 2.5.1
+ Auto Create Database File
  • 2.5.0
- image Deleted
+ base64 Added
  • 2.0.0
+ Fixed Bugs
  • 0.0.1
+ First Release

Keywords

FAQs

Last updated on 08 Jan 2021

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