dh-captcha

1.0.0 • Public • Published

npm i dh-captcha -S

如何使用
const captcha = require('dh-captcha')
let C = captcha.create()
const http = require('http')
const captcha = require('dh-captcha')

http.createServer((req,res) => {
    res.setHeader('content-type', 'text/html;charset=utf-8')
    let C = captcha.create()
    // console.log(C); // {text:"". data: svg}
    res.end(C.data)
}).listen(3000,() => {
    log('启动成功,访问: http://localhost:3000');
})

Readme

Keywords

Package Sidebar

Install

npm i dh-captcha

Weekly Downloads

10

Version

1.0.0

License

ISC

Unpacked Size

2.14 kB

Total Files

4

Last publish

Collaborators

  • d71744489