svg-captcha-hhhhhhhhh

1.0.3 • Public • Published

导入

const http = require('http')
const svgCaptcha = require('svg-captcha-hhhhhhhhh')

使用

http.createServer((req, res) => {

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

Dependents (1)

Package Sidebar

Install

npm i svg-captcha-hhhhhhhhh

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

1.47 kB

Total Files

3

Last publish

Collaborators

  • th_han