Socket
Socket
Sign inDemoInstall

node-captcha-generator

Package Overview
Dependencies
84
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-captcha-generator

captcha image generator


Version published
Weekly downloads
53
increased by12.77%
Maintainers
1
Install size
59.2 MB
Created
Weekly downloads
 

Readme

Source

node-captcha

node-captcha is a captcha generator write in pure js, thanks to oliver-moran.

node-captcha generate only numeric captcha, it use MNIST database to generate random number combination.

Example usage:


    let Captcha = require('node-captcha-generator');

    var c = new Captcha({
        length:5, // number length
        size:{    // output size
            width: 450,
            height: 200
        }
    });

    c.save('dirPath/to/save', function(err){

    });

    // get base64 image as string
    c.toBase64(function(err, base64){

    });

    // string value of captcha
    c.value;

    // jimp object  more info https://github.com/oliver-moran/jimp
    c.captcha;

    c.captcha.write('filePath/to/save', function(err){
    });

results

39314 39314

47612 47612

3406072 3406072

4803633 4803633

todo

  • add colors options
  • add more randomize options
  • switch to alphanumeric captcha

Keywords

FAQs

Last updated on 04 Jul 2016

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