n-captcha
nodejs captcha
How to install
-
brew install pkg-config if you don't have
-
brew install cairo if you don't have
-
npm install n-captcha --save
Config
//verify code length textLen: 4 //verify code color color: '#2897CE' //verify code bg-color background: '#DFDFDF' lineWidth: 3 fontSize: 3 imageW: 200 imageH: 80 //identify level level: 3 //bezier Curve color bcColor: '#97BFB2' {}
How to use
if you use express
or koa
you can use it as middleware
You server code
var app = ;var ncaptcha = ;app // route app
You client code
license
MIT