npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

zpm-verification

v1.0.2

Published

点选文字验证

Readme

这是一款随机生成点选文字验证的VUE组件,和普通的点选文字区别在于: 文字是移动的,可设置运行速度,可倒计时刷新,可设置是否自动验证(点击总数达到后自动校验),可根据客户给出的背景随机展示,可设置剩余多少秒时开始震动,并且要按照顺序和个数依次次点选,通过验证后方可执行下一步

Props:

| 属性 | 属性说明 | 属性类型 | 默认值 | | :------------- | :----------------------------------------------------------------------------- | :-------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | id | 验证区域容器id | String | wrap_当前时间戳 | | boxStyle | 容器自定义样式 | Object | {"border-radius":"8px"} | | width | 容器宽度 | String | 100% | | height | 容器高度 | String | 250px | | activity | 是否运动 | Boolean | true | | crashing | 文字是否可互相碰撞 | Boolean | false | | clickAll | 是否全部需要点选 | Boolean | true | | showCountDown | 是否开启倒计时多少秒后自动刷新文字验证码 | Boolean | false | | countDownStyle | 自定义倒计时文字描述样式 | Object | {'color': '#666', 'font-size':'14px', 'letter-spacing': '2px','text-align':'right'} | | countDownTime | 开启倒计时后,多少秒后自动刷新验证码 默认值30秒,可以是固定数值秒数,也可以是数字区间内的随机秒数,例如:[15,30],即在15到30秒内随机倒计时数 | [Number,Array] | 30 | | applyShakeTime | 倒计时多少秒后震动 | Number | 5 | | speed | 运动速度 | Number | 0.2 | | background | 背景颜色或图片路径,随机展示哦用户给出的图片或者展示客户给出的随机颜色(随机渐变) | Array | 无 | | fonts | 字体 | Array | ["华文行楷", "华文彩云", "Muyao-Softbrush", "KaiTi", "FangSong_GB2312", "SimSun", "SimHei", "Microsoft JhengHei", "Microsoft YaHei", "PMingLiU", "YouYuan", "STCaiyun", "FZYaoti"] | | defaultDesc | 是否启用默认描述文字,true时自带描述文字,和按钮校验 | Boolean | true | | validRealTime | 是否实时校验(即点击够了次数之后自动校验) | Boolean | true | | validBtnStyle | 内置校验按钮的样式 | Object | | | validBtnText | 内置校验按钮的文字 | String | 验证 |

Event:

initInfo:初始化返回需要点击的文字(text)以及个数(num)和校验方法validFun,在不使用内置点选描述和自动校验时,可手动拼接点选文字描述信息以及手动点击按钮配置调用validFun方法 例如: {strings:[{next:'章',num:2},{next:'叁',num:1}],validFun(){}}

result:返回验证结果,并自动提示

使用方法: 1.npm install zpm-verification 2.在vue项目中的main.js中加入一下代码 import Verification from 'zpm-verification' Vue.use(Verification) import 'zpm-verification/Verification.css' Image text