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

inx-verify

v1.0.2

Published

第四代验证码

Readme

INX-verify 第四代验证码

INX-verify 新一代图灵检测,适用与Vue2.0项目

安装

npm install -g inx-verify[@version]

如下版本:
npm install -g [email protected]
npm install -g [email protected]
npm install -g [email protected] 

展示Demo

image

基础使用

  1. 安装
  • npm i -g inx-verify
  1. 配置

    • vue项目入口文件 main.js引用资源 import inxVerify from 'inx-verify'
    • 挂载vue全局注册 Vue.use(inxVerify)
  2. 调用

    <template>
    <div id="app">
    	<main>
    		<section>
    			<h2>语序点击</h2>
    			<orderVerify></orderVerify>
    		</section>
    		<section>
    			<h2>顺序点击</h2>
    			<pointVerify></pointVerify>
    		</section>
    		<section>
    			<h2>滑块拖动</h2>
    			<slideVerify></slideVerify>
    		</section>
    	</main>
    </div>
  1. props说明

    • slideVerify组件
    		// 拖拽模块宽度
    	l: {
    		type: Number,
    		default: 42,
    	},
    	// 拖拽模块圆角
    	r: {
    		type: Number,
    		default: 10,
    	},
    	// 画布宽度
    	w: {
    		type: Number,
    		default: 400,
    	},
    	// 画布高度
    	h: {
    		type: Number,
    		default: 200,
    	},
    	// 滑块提示信息
    	sliderText: {
    		type: String,
    		default: '左侧滑块将图片还原',
    	},
    	// 校准精度
    	accuracy: {
    		type: Number,
    		default: 5, // 若为 -1 则不进行机器判断
    	},
    	// 控件内部刷新按钮
    	refreshIconShow: {
    		type: Boolean,
    		default: true,
    	},
    	// canvas图片展示
    	imgs: {
    		type: Array,
    		default: () => [
    			'https://kora-kr.github.io/assets/img/0.ed1b9c0d.jpg',
    			'https://kora-kr.github.io/assets/img/1.5aaed007.jpg',
    			'https://kora-kr.github.io/assets/img/2.0604aa3e.jpg',
    			'https://kora-kr.github.io/assets/img/3.5aaed007.jpg',
    			'https://kora-kr.github.io/assets/img/4.2011bb84.jpg',
    		],
    	},
    • orderVerify、pointVerify组件
    	//弹出式pop,固定fixed
    	mode: {
    		type: String,
    		default: "fixed",
    	},
    	//默认的文字数量
    	defaultNum: {
    		type: Number,
    		default: 5,
    	},
    	//校对的文字数量
    	checkNum: {
    		type: Number,
    		default: 4,
    	},
    	//间隔
    	vSpace: {
    		type: Number,
    		default: 5,
    	},
    	imgUrl: {
    		type: String,
    		default: "http://via.placeholder.com/",
    	},
    	imgs: {
    		type: Array,
    		default: () => [
    			'https://kora-kr.github.io/assets/img/0.ed1b9c0d.jpg',
    			'https://kora-kr.github.io/assets/img/1.5aaed007.jpg',
    			'https://kora-kr.github.io/assets/img/2.0604aa3e.jpg',
    			'https://kora-kr.github.io/assets/img/3.5aaed007.jpg',
    			'https://kora-kr.github.io/assets/img/4.2011bb84.jpg',
    		],
    	},
    	imgName: {
    		type: Array,
    		default() {
    			return ["350x150", "350x450"];
    		},
    	},
    	// 画布尺寸
    	imgSize: {
    		type: Object,
    		default() {
    			return {
    				width: "400px",
    				height: "200px",
    			};
    		},
    	},
    	// 底部提示尺寸
    	barSize: {
    		type: Object,
    		default() {
    			return {
    				width: "400px",
    				height: "56px",
    			};
    		},
    	},
  2. 事件监听(成功、失败)


<orderVerify @success="onSuccess"></orderVerify>
<pointVerify @success="onSuccess"></pointVerify>
<slideVerify ref="slideBlock" @success="onSuccess" @again="onAgain" @fulfilled="onFulfilled" @fail="onFail" @refresh="onRefresh" :accuracy="accuracy"></slideVerify>

...

onSuccess(times) {
		setTimeout(() => {
			this.msg = '验证成功'
		}, 1e3);
		// this.msg = '验证成功'
		// this.msg = `验证成功, 耗时${(times / 1000).toFixed(1)}s`;
	},

备注

参考传送门:顶象

to be continued