
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
vue-captcha-code-alpha
Advanced tools
yarn add vue-captcha-code-alpha
<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>
Name | Type | Default | Desp |
---|---|---|---|
codeLength | Number | 4 | length of verification code |
codeType | String[] | ["A", "a", "0"] | type of verification code A [A-Z] / a [a-z] / 0 [0-9] |
contentWidth | Number | 120 | captcha width |
contentHeight | Number | 40 | captcha height |
fontSizeMin | Number | 24 | minimum font size |
fontSizeMax | Number | 36 | maximum font size |
textColor | String | null | specify text color |
textColorMin | Number | 50 | minimum text color |
textColorMax | Number | 160 | maximum text color |
textDegMin | Number | -30 | minimum text rotation |
textDegMax | Number | 30 | maximum text rotation |
backgroundColor | String | null | specify background color |
backgroundColorMin | Number | 200 | minimum background color |
backgroundColorMax | Number | 220 | maximum background color |
dotCount | Number | 30 | specify dot count |
dotColorMin | Number | 0 | minimum dot color |
dotColorMax | Number | 255 | maximum dot color |
lineCount | Number | 4 | specify line count |
lineColorMin | Number | 40 | minimum line color |
lineColorMax | Number | 180 | maximum line color |
FAQs
## install ``` yarn add vue-captcha-code-alpha ```
The npm package vue-captcha-code-alpha receives a total of 57 weekly downloads. As such, vue-captcha-code-alpha popularity was classified as not popular.
We found that vue-captcha-code-alpha demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.