plexi-captcha

0.0.2 • Public • Published

Captcha Generator (canvas)

Example

// Require Packages
const Captcha = new (require('../index.js'))(150, 50, 5, { fontSize: 55 }); // Define Captcha Template
const fs = require('fs');
 
// Generate Captcha
const { buffer, text } = Captcha.createCaptcha();
 
// Write Captcha
fs.writeFile('image.png', buffer, (err) => {
  if (err) throw err;
  console.log('[Generated] Text:', text);
})

Readme

Keywords

Package Sidebar

Install

npm i plexi-captcha

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

87.4 kB

Total Files

6

Last publish

Collaborators

  • truexpixels