📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

captcha-img

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

captcha-img

Generate traditional captcha images

1.1.0
latest
npm
Version published
Maintainers
1
Created
Source

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'
);

});

FAQs

Package last updated on 14 Apr 2023

Did you know?

Socket

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