# @types/ccap

> TypeScript definitions for ccap

Latest version **0.6.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/ccap
pnpm add @types/ccap
yarn add @types/ccap
bun add @types/ccap
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.6.5 |
| Published | 2023-11-07 |
| First published | 2017-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51496 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/ccap
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ccap
- npm.io page: https://npm.io/package/@types/ccap

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 0.6.5 (latest) — 2023-11-07
- 0.6.3 (ts4.3) — 2023-09-04
- 0.6.2 (ts3.6) — 2021-07-08
- 0.6.1 (ts3.0) — 2020-05-15
- 0.6.0 (ts2.0) — 2017-04-21
- 0.6.4 — 2023-10-17

## README

# Installation
> `npm install --save @types/ccap`

# Summary
This package contains type definitions for ccap (https://github.com/DoubleSpout/ccap).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ccap.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ccap/index.d.ts)
````ts
/// <reference types="node" />

interface Captcha {
    get(): [string, Buffer];
}

interface Options {
    width?: number | undefined; // set width,default is 256
    height?: number | undefined; // set height,default is 60
    offset?: number | undefined; // set text spacing,default is 40
    quality?: number | undefined; // set pic quality,default is 50
    fontsize?: number | undefined; // set font size,default is 57
    // Custom the function to generate captcha text
    generate?(): string;
}

declare function ccap(width: number, height: number, offset: number): Captcha;
declare function ccap(options?: Options): Captcha;

declare namespace ccap {}
export = ccap;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [taoqf](https://github.com/taoqf).

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