Socket
Socket
Sign inDemoInstall

captcha-generator

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    captcha-generator

Production image verification code by jpeglib


Version published
Weekly downloads
10
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Install

$ npm install --save captcha-generator

Overview

This is a captcha generator that can only generate image verification code because I do not like ccap, ccap uses not only trouble but also low performance and easy memory leak. captcha-generator can also be used across platforms. preview

Usage

import {generate, createPlaintext} from "captcha-generator"

Get the verification code by default

const cimg = generate();
const {base64, plaintext, buffer, imageType} = cimg;

Customize picture content and width and height

const cimg = generate({
	text: createPlaintext(6),
    width: 500,
    height: 200,
    fontSize: 200
} );
const {base64, plaintext, buffer, imageType} = cimg;

Keywords

FAQs

Last updated on 18 Apr 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc