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,
size:{
width: 450,
height: 200
}
});
c.save('dirPath/to/save', function(err){
});
c.toBase64(function(err, base64){
});
c.value;
c.captcha;
c.captcha.write('filePath/to/save', function(err){
});
results
39314
47612
3406072
4803633
todo
- add colors options
- add more randomize options
- switch to alphanumeric captcha