Skip to content
/ captcha Public
forked from trekjs/captcha

A Lightweight Captcha (C++) for Node.js. No ImageMagick, No canvas.

License

Notifications You must be signed in to change notification settings

fuyb/captcha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

captcha

A lightweight captcha (C++) for Node.js. No ImageMagick, No canvas. Inspired By rucaptcha.

Installation

$ npm install trek-captcha --save

Examples

'use strict'

const fs = require('fs')
const captcha = require('trek-captcha')

const { token, buffer } = captcha(5)

// console.log(token, buffer)

fs.createWriteStream('a.gif').on('finish', () => console.log('END')).end(buffer)

API

captcha(style)

// returns
{
  token,
  buffer
}

Badges

Linux Windows codecov


fundon.me  ·  GitHub @fundon  ·  Twitter @_fundon

About

A Lightweight Captcha (C++) for Node.js. No ImageMagick, No canvas.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 83.5%
  • C++ 15.3%
  • Other 1.2%