F Happy Verification Code Save

前端随机生成验证码的小工具

Project README

verification-code

npm npm npm

前端随机生成验证码的小工具, 利用了前端中的 canvas 画布来进行数字的展示。

安装:

npm install --save-dev verification-code

开始使用:

import verification from 'verification-code';

var result = verification.create();
var vcode = result.code;				// 随机生成的验证码
var imgDataURL = result.dataURL;		// 验证码图片的 base64

效果:

Open Source Agenda is not affiliated with "F Happy Verification Code" Project. README Source: F-happy/verification-code
Stars
39
Open Issues
2
Last Commit
6 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating