You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-captcha-code-alpha

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-captcha-code-alpha

## install ``` yarn add vue-captcha-code-alpha ```

0.3.2
latest
Source
npmnpm
Version published
Weekly downloads
57
9.62%
Maintainers
1
Weekly downloads
 
Created
Source

vue-captcha-code-alpha

install

yarn add vue-captcha-code-alpha

for vue3 use

img.png

usage

<script setup>
import { CaptchaImage } from 'vue-captcha-code-alpha'
import 'vue-captcha-code-alpha/style.css'
import type { CaptchaImageInstance } from 'vue-captcha-code-alpha'

const captchaRef = ref<CaptchaImageInstance>()

const validate = () => {
    captchaRef.value.validate("1234")
}
</script>

<template>
    <CaptchaImage ref="captchaRef"/>
</template>

props

NameTypeDefaultDesp
codeLengthNumber4length of verification code
codeTypeString[]["A", "a", "0"]type of verification code A [A-Z] / a [a-z] / 0 [0-9]
contentWidthNumber120captcha width
contentHeightNumber40captcha height
fontSizeMinNumber24minimum font size
fontSizeMaxNumber36maximum font size
textColorStringnullspecify text color
textColorMinNumber50minimum text color
textColorMaxNumber160maximum text color
textDegMinNumber-30minimum text rotation
textDegMaxNumber30maximum text rotation
backgroundColorStringnullspecify background color
backgroundColorMinNumber200minimum background color
backgroundColorMaxNumber220maximum background color
dotCountNumber30specify dot count
dotColorMinNumber0minimum dot color
dotColorMaxNumber255maximum dot color
lineCountNumber4specify line count
lineColorMinNumber40minimum line color
lineColorMaxNumber180maximum line color

Keywords

captcha

FAQs

Package last updated on 09 Jun 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.