Catalog npm
Back to packageRELEASE DETAILS

1.1.4

npm

2captcha-node

A NodeJS wrapper to solve image captchas with 2captcha

2captchacaptchasolvewrapper
Published9 Sept 2019
Direct dependencies12
Transitive dependenciesNot calculated

README

Current package documentation

Welcome to 2captcha-node 👋

NPM version Bundle size MIT

A NodeJS wrapper to solve image captchas with 2captcha

Prerequisites:

You will need a 2Captcha API key

Install

npm install 2captcha-node

or

yarn add 2captcha-node

Usage

Set up your api key:

import captchaSolver from '2captcha-node';

const captcha = captchaSolver('your-api-key');

It'll return an object with the solve function, and you'll be able to use it inside of your script

const options = {
  image: 'base64-image',
  maxAttempts: 60, // Optional
};

const { id, text } = await captcha.solve(options);

And this solvedCaptcha will return object, with captcha id and captcha text

You can use the balance function too, to see your balance at 2Captcha

const balance = await captcha.balance();

You can use the Report Captcha is valid or not.

await captcha.report(id, isValid);

Author

👤 Pedro Filho pedro@filho.me

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

Buy Me A Coffee

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 12

Native requirements
12 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
request
Environment
{
  "local_name": "request",
  "alias": false,
  "peer_metadata": null
}
^2.88.0runtime
request-promise-native
Environment
{
  "local_name": "request-promise-native",
  "alias": false,
  "peer_metadata": null
}
^1.0.7runtime
@babel/cli
Environment
{
  "local_name": "@babel/cli",
  "alias": false,
  "peer_metadata": null
}
^7.5.5development
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
^7.5.5development
@babel/preset-env
Environment
{
  "local_name": "@babel/preset-env",
  "alias": false,
  "peer_metadata": null
}
^7.5.5development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^6.1.0development
eslint-config-standard
Environment
{
  "local_name": "eslint-config-standard",
  "alias": false,
  "peer_metadata": null
}
^13.0.1development
eslint-plugin-import
Environment
{
  "local_name": "eslint-plugin-import",
  "alias": false,
  "peer_metadata": null
}
^2.18.2development
eslint-plugin-node
Environment
{
  "local_name": "eslint-plugin-node",
  "alias": false,
  "peer_metadata": null
}
^9.1.0development
eslint-plugin-promise
Environment
{
  "local_name": "eslint-plugin-promise",
  "alias": false,
  "peer_metadata": null
}
^4.2.1development
eslint-plugin-standard
Environment
{
  "local_name": "eslint-plugin-standard",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "266b300ccc8066511a7e0606c649ebc295529b9e",
  "integrity": "sha512-fh1Ax3xYS2eJCHjmEY9pLFpZAqsXe1v00CxK53KcbPMLT0W6Lg9nkG0DrfUUIV88YolWw5zlvYaDz4eviEGuEw==",
  "tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.1.4.tgz",
  "fileCount": 6,
  "unpackedSize": 10090,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddoozCRA9TVsSAnZWagAAg28P/3X6YwyOu5HVDQhnNpCH\np3Ko01imM7VCoqxnFcbXdGOJlEmep0KOmOcDqZtsHQyj+SrKZNQKxtQun4y3\nrZAa3WZzOrS9KzFPcKIPsT2uayc75qdureVyxJd9tP/DINOgD/FTJteZd1Gu\nt3dloheXjmFlQFvMWgOXvP8/9W9D3nVBZVcWQSrPdjeHbNlhwkMvotNfqnjf\nI60YxQvHuunQZFE5kdVV40MBRO45pYg6e0EuIR4DqxpvQ2JDpTwOEGyxn1Ln\nqhOd6R+v8EdwkE4mRO9H5Is/kBSxThW75Tqcm+95SxrYtrj56Y0YU/QmN6gu\nPcLD1A3aBPg8EuoMEk0nnyYDk25irUDtw+g10KB/S31CU1+tvOfDlb685+Fy\nOoKhsFHsl2rcPe+FujwJwNVP4RjIoWJyeuzKep5H2IhDsAyz7JjFHaQ2ZKkr\nuw0hS8po3pIvs0cWqm6m3U3Y7kYqieBbuIKg/XhCjz1OxuYAHI4Jonrc32J7\n6jLC+KpOxO3mZ0DCfLywQEpkeBaFpGI/H0g7vuY4aPufVQWaLW+l4oapqWfu\nTjST/6VKmJkvQBWLIwaMlpup6FU3pcRiK+PSZMqf4TchiX1etDyrp+LJtGYh\nbTJZ3wUgrx8I5RidxcDJKRBiPd3h+wn2+RAAMZ2PG4YlKPK78tGQnjwU33Nl\nd+T/\r\n=Jn9w\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQCMK4PDcujS/iYVuv5+1D6uaV1+wxo3BKewCbtRwPJnPgIgBNPNhe1RgdQWGNg+tmEVbf2akoWIWUPBrkd2IxCLb74="
    }
  ]
}

Repository

PENDING
pedroapfilho/2captcha-node

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:c31a37d8635ceff3a59538743a990635e6035a74d2fa161af6516d8e4fe69973

Other collected versions

2.2.11 Nov2.2.01 Oct2.1.21 Sept2.1.122 Aug2.1.010 Aug2.0.63 AugView all collected versions →