Catalog npm
Back to packageRELEASE DETAILS

2.0.5

npm

2captcha-node

A NodeJS wrapper to solve image captchas with 2captcha

2captchacaptchasolvewrapper
Published17 Jul 2020
Direct dependencies7
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 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
isomorphic-unfetch
Environment
{
  "local_name": "isomorphic-unfetch",
  "alias": false,
  "peer_metadata": null
}
^3.0.0runtime
@types/request
Environment
{
  "local_name": "@types/request",
  "alias": false,
  "peer_metadata": null
}
^2.48.5development
@types/request-promise-native
Environment
{
  "local_name": "@types/request-promise-native",
  "alias": false,
  "peer_metadata": null
}
^1.0.17development
husky
Environment
{
  "local_name": "husky",
  "alias": false,
  "peer_metadata": null
}
^4.2.5development
tsdx
Environment
{
  "local_name": "tsdx",
  "alias": false,
  "peer_metadata": null
}
^0.13.2development
tslib
Environment
{
  "local_name": "tslib",
  "alias": false,
  "peer_metadata": null
}
^2.0.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^3.9.7development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "7a668c626bede036aeb2d26f7dd55e6b2cb25d0a",
  "integrity": "sha512-ycYOcMmTNQkd8TGCMnGfJ8chSXsL/5jnSnmhTcZanXvtntfkcntoVKkoOrI71cE6DQEICMV2qHRVsascEGwi2A==",
  "tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-2.0.5.tgz",
  "fileCount": 14,
  "unpackedSize": 105363,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEXJdCRA9TVsSAnZWagAAMpQQAKQiyzwcc19PXEIVyqCz\nwICATwtlL2lZJFaKRpsc+ThPEIcYtNyw2EeMKTwalh1GlCat4xr+zai3TEYK\ny8G5M8nsl7QjNkQ6N01c93xCz0J1uiSs5L+6QEhzPq7B6m+qmmrcCKx/k6zf\nzfs8YlDXoyq3BUXwT+hdVnn1+VAAvvRBH3zSKeeKaZQge88m0xXMBT049D7/\nsmylZ/8EbBCtZZt3LzZftuU4jM1Lrn2ss0rgQ6OCUbE5Vk+CoCy61NH9SHB4\nnywObAzs0v6LVnsb2P13Qy+jV28WrWxO9raRoldwdogJspkJU9IQXR47c40Z\nQuvPDupIHrRe5x10iR8HGpqSXqHmARJ5eUu43N1ZlN50n1lrrPCSUAIitOf3\nZTofn5QMVgUqI56bbXhA50vTJ4xpLN+3bAYxjVzne0gE7O3Uz9lGz6K9Z02K\nYXONCUm4DJjGjhiiMPFUp/cK8VOSY/NFxJWIa1ilBPBVOTPTt3dNp83hk2Fx\ncQL8uC/l5EWSBNsi4UjEOIQkAIJQuwWft1kjp+rfxEx7mY930IEt2bUUJLHB\n1p3ErlzL8smTywgOYdB4zBKzNtJXqBut6ijIy8XjRA451mDTt2ZvwblUABiO\nl6OYJEyhge7nN9luONKSRF0CpkDt4nXKSaqNxa192XJReQtMwFkWRKu7bHU1\nkRuH\r\n=fAFW\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQCTp7EdUDm70uhSNz1IZ+E+OBAh1Or3CezIbbnTrJC5CQIgaPOf1pcLdLZdHrzn/adsZHnYDjV+oZs8KBMW4lIN2zI="
    }
  ]
}

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:a9d1ad3bc6b9a19c2e07452b6825e4a37be856e8246f5a5b447ab33dbb830ee2

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 →