0.5.1 • Published 9 months ago

fibjs-captcha v0.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

captcha

A Lightweight Pure JavaScript Captcha for Fibjs. No C/C++, No ImageMagick, No canvas. Inspired By rucaptcha.

Installation

$ npm install fibjs-captcha --save

Examples

'use strict'

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

const { token, buffer } = captcha()
// console.log(token, buffer)

fs.writeFile(`${token}.gif`, buffer);

API

captcha({ size: 5, style: -1 })

  • size: Defaults to 5.
  • style: Defaults to -1 with random.
// returns
{
  token,
  buffer
}

Badges

Linux Windows codecov npm.io


fundon.me  ·  GitHub @fundon  ·  Twitter @_fundon

0.5.1

9 months ago

0.5.0

1 year ago