【文件属性】:
文件名称:captcha.js:Node.js中的验证码
文件大小:125KB
文件格式:ZIP
更新时间:2021-02-05 04:45:09
nodejs express captcha node-js ExpressJavaScript
captcha.js
这是Node.js应用程序的验证码。
例
只是写一个Express例子,其他人有时间提出。
要求
ImageMagick 6.9+
幽灵脚本8+
的Ubuntu
sudo apt-get install imagemagick ghostscript
Mac OS X
brew install imagemagick ghostscript
用法
快速范例
const Captcha = require ( 'captcha.js' ) ;
const captcha = new Captcha ( { length : 5 } ) ;
captcha . cre
【文件预览】:
captcha.js-master
----lib()
--------configuration.js(471B)
--------index.js(3KB)
----.npmignore(8B)
----example()
--------assets()
--------express()
----README.md(2KB)
----.gitignore(542B)
----package.json(534B)