Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

captcha-text-generator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

captcha-text-generator

Captcha Text Generator === This is a reactjs component for generating captcha text. - automatically generate random text - easy to validate - easy to customize the style

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
52
decreased by-53.98%
Maintainers
1
Weekly downloads
 
Created
Source

Captcha Text Generator

This is a reactjs component for generating captcha text.

  • automatically generate random text
  • easy to validate
  • easy to customize the style

Basic usage

Install

npm i captcha-text-generator

Import the component to your code:

import { CaptchaText } from 'captcha-text-generator'

Add component to your code:

<CaptchaText
  length={5}
  onGenerated={(val) => console.log(val)}
/>

Props available:

You also can customize the style using bellow props:

  • height: height for the image
  • width: width for the image
  • textColor: color for the text
  • fontFamily: font family for the text
  • fontSize: font size for the text
  • paddingLeft: padding left for each text and first text between image
  • paddingTop: padding top between image and text
  • length: length for text, you can set as many as you want
  • background: background for the image
  • onGenerated: a callback function once it generated

Keywords

FAQs

Package last updated on 08 Oct 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc