1.0.7 • Published 5 years ago

total-captcha v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

total-captcha

A captcha module for nodejs based on node-canvas

Note

  • install Cairo first, For system-specific installation view the Wiki from node-canvas

Installation

$ npm install total-captcha

Usage

//captcha 
var captcha = require("total-captcha");
var obj = {
	"mode" : 3, // 1 - Numeric captcha, 2 - alphabetical captcha, 3 - alphanumeric captcha
	"length" : 5
};
var resultant = captcha.createCaptcha(obj);
console.log("resultant", resultant);

Test

$ git clone https://github.com/BalaKrishna-BALU/total-captcha.git
$ cd total-captcha
$ sudo npm install
$ node test.js

Output

Generates an array consisting captcha code and base64 encoded captcha image.

License

MIT

1.0.7

5 years ago

1.1.0

5 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.0

9 years ago