Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

trek-captcha

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trek-captcha

A Lightweight Pure JavaScript Captcha for Node.js. No C/C++, No ImageMagick, No canvas.

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
185
increased by25.85%
Maintainers
1
Weekly downloads
 
Created
Source

captcha

A Lightweight Pure JavaScript Captcha for Node.js. No C/C++, 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')

async function run() {
  const { token, buffer } = await captcha()

  // console.log(token, buffer)

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

run()

API

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

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

Badges

Linux Windows codecov


fundon.me  ·  GitHub @fundon  ·  Twitter @_fundon

Keywords

FAQs

Package last updated on 30 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc