# node-nocap

> NodeJS implementation of multiple captcha solving services that return the same errors and formatted responses.

Latest version **0.2.2** (published 2020-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-nocap
pnpm add node-nocap
yarn add node-nocap
bun add node-nocap
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2020-12-30 |
| First published | 2020-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 86.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | zMrKrabz |
| Maintainers | jadetycoon |

## Links

- npm: https://www.npmjs.com/package/node-nocap
- Repository: https://github.com/zMrKrabz/NoCap
- Homepage: https://github.com/zMrKrabz/NoCap#readme
- Issues: https://github.com/zMrKrabz/NoCap/issues
- npm.io page: https://npm.io/package/node-nocap

## Dependencies (6)

- [got](https://npm.io/package/got.md) ^11.8.1
- [cors](https://npm.io/package/cors.md) ^2.8.5
- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [express](https://npm.io/package/express.md) ^4.17.1
- [@types/cors](https://npm.io/package/@types/cors.md) ^2.8.9
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0

## Recent versions

- 0.2.2 (latest) — 2020-12-30
- 0.2.1 — 2020-12-30
- 0.2.0 — 2020-12-30
- 0.1.0 — 2020-12-30

## README

# NoCap

NodeJS implementation of multiple captcha solving services in one wrapper.

## Advantages

- Made in Typescript
- Uses [got](https://github.com/sindresorhus/got) as `http` client, making all functions asynchronous
- Currently supports [2Captcha](http://2captcha.com/?from=7875027) and [Cap Monster](https://capmonster.cloud/)
- Supports all ReCaptcha V2

# Quickstart

Examples of how to use the captcha wrapper

## Installation

Wrapper is not available on `npm`, but is currently available via [yarn](https://yarnpkg.com/)

## Creating a new client

`2Captcha` can be replaced

```js
import NoCap from "NoCap";

const apiKey = "";
const client = new NoCap("2Captcha", key);
```

## Solving a ReCaptcha challenge

Using the previous client,

```js
(async () => {
  const googlekey = "6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd";
  const pageURL =
    "https://lessons.zennolab.com/captchas/recaptcha/v2_simple.php?level=high";

  const token = await client.reCaptchaV2(googleKey, pageURL);
  console.log(token);
})();
```

# TODO

- Create a Firefox extension that spoofs page URL so manual solving is possible. Work has been started [here](https://github.com/zMrKrabz/NoCapExtension).
- Add support for hcaptcha and manual image recognition.

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