simple-captcha
Simple node captcha service
Last updated 5 years ago by calidion .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install simple-captcha 
SYNC missed versions from official npm registry.

NPM version Build Status Dependency Status

Simple node captcha service

Captcha

Preinstall

Ubuntu

$ sudo apt-get update -qq
$ sudo apt-get install -y libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++

Install

$ npm install --save simple-captcha

Usage

var express = require('express');
var http = express();

http.all('/', function(req, res) {
  var captcha = require('simple-captcha').create({width: 100, height: 40});
  console.log(captcha.text());
  captcha.generate();
  res.write(captcha.buffer('image/png'));
  res.end();
});
http.listen(9999, function() {
  console.log('Express Server Running on Port 9999');
  console.log('visit http://localhost:9999 to see the captcha');
});

License

MIT © calidion

Current Tags

  • 0.1.10                                ...           latest (5 years ago)

11 Versions

  • 0.1.10                                ...           5 years ago
  • 0.1.9                                ...           5 years ago
  • 0.1.8                                ...           5 years ago
  • 0.1.7                                ...           5 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (12)
Dependents (4)

Copyright 2014 - 2017 © taobao.org |