Package Exports
- trek-captcha
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (trek-captcha) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
captcha
A lightweight captcha (C++) for Node.js. No ImageMagick, No RMagick. Inspired By rucaptcha.
Installation
$ npm install trek-captcha --saveExamples
'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(int)