1.1.0 • Published 1 year ago

captcha-img v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

captcha-img

CaptchaIMG is a very simple node.js module which generates distorted pictures with codes for CAPTCHAs.

Example Use

const captcha = require('captcha-img');
const fs = require('fs');

// generate a captcha
captcha('abc').then(b64 => {

// write the result to /captcha.png
fs.writeFileSync(__dirname + '/captcha.png',

  // to remove the 'data:image/png;base64,'
  b64.split(',')[1],

  'base64'
);

});
1.1.0

1 year ago

1.0.0

1 year ago