# simple-captcha

> Simple node captcha service

Latest version **0.1.10** (published 2016-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-captcha
pnpm add simple-captcha
yarn add simple-captcha
bun add simple-captcha
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.10 |
| Published | 2016-01-22 |
| First published | 2015-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | calidion |
| Maintainers | calidion |
| Keywords | simple-captcha, captcha, canvas, node |

## Links

- npm: https://www.npmjs.com/package/simple-captcha
- Repository: https://github.com/JSSDKCN/simple-captcha
- Issues: https://github.com/JSSDKCN/simple-captcha/issues
- npm.io page: https://npm.io/package/simple-captcha

## Dependencies (1)

- [canvas](https://npm.io/package/canvas.md) ^1.3.8

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.1.10 (latest) — 2016-01-22
- 0.1.9 — 2016-01-20
- 0.1.8 — 2015-12-27
- 0.1.7 — 2015-06-25
- 0.1.6 — 2015-06-25
- 0.1.5 — 2015-06-20
- 0.1.4 — 2015-06-20
- 0.1.3 — 2015-06-11
- 0.1.2 — 2015-06-11
- 0.1.1 — 2015-06-11
- 0.1.0 — 2015-06-11

## README

#  [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]

> Simple node captcha service

![Captcha](/assets/captcha.png)


## Preinstall

### Ubuntu

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

## Install

```sh
$ npm install --save simple-captcha
```


## Usage

```js
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](blog.3gcnbeta.com)


[npm-image]: https://badge.fury.io/js/simple-captcha.svg
[npm-url]: https://npmjs.org/package/simple-captcha
[travis-image]: https://travis-ci.org/JSSDKCN/simple-captcha.svg?branch=master
[travis-url]: https://travis-ci.org/JSSDKCN/simple-captcha
[daviddm-image]: https://david-dm.org/JSSDKCN/simple-captcha.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/JSSDKCN/simple-captcha

---
_Source: https://npm.io/package/simple-captcha · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
