Catalog npm
Back to packageRELEASE DETAILS

1.2.2

npm

2captcha-node

A NodeJS wrapper to solve image captchas with 2captcha

2captchacaptchasolvewrapper
Published4 Nov 2019
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
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
@types/request
Environment
{
  "local_name": "@types/request",
  "alias": false,
  "peer_metadata": null
}
^2.48.3development
@types/request-promise-native
Environment
{
  "local_name": "@types/request-promise-native",
  "alias": false,
  "peer_metadata": null
}
^1.0.17development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^3.6.4development
xo
Environment
{
  "local_name": "xo",
  "alias": false,
  "peer_metadata": null
}
^0.25.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "6580457e729149a5d1860f3e1c1ee6ca54c318cb",
  "integrity": "sha512-lHOBBtoeo9MKNGH7R6WjZUW80jlAwU5l9wmXhW353xjoqGyfbTPpoC0GL9KEOUsvdej+6wa26fOWC87vB4NISA==",
  "tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.2.2.tgz",
  "fileCount": 6,
  "unpackedSize": 6924,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwHPoCRA9TVsSAnZWagAA7B8P/2ii2OEp+s0XDMEfrkS/\nDndQ8F2MgyPqrN4XO78BMCgMZh8MN+DWAO/4l12LGyJr2Af5o0EgW604fa4L\nLDWRSb/+qTkWxRahTyicCSxqc8Orwa1CBVKhL85dBZ7sCtK4B6t6YZna/aNy\nopIhYm4kWI0+m3uMfOxixOYy/wZV0er/FSDgP+lFMyTuEWfs0hxyFljLGG2S\nIcRzuF/9RnhXfDshrsp64/rvqGFFlH3ctJ2/fFlMQmxKdtf7CBjnFpD/jA0S\nKCg8YWR8IZ+/t7GrKeLgRCp8REAz9z2gFByPZVimGsOGlu3K5P3qgV9y1wb6\nEQtxjXS9o09UNAp62gPY14MsNq7IPGugWPrrpEQZco067f0Vh9j1IqQZmVjg\nq+aSst7mZbS3ruzHZk89ngnYdu9ap77S7NYBrzs0zkh06MzOIKZIUci5fl0x\nO9I+LfEmGaiPPyCwwhE8V4ZL6MqdYqyETgPrCdEdmgfzkgo0hE6zrfNWMshB\n3R4XcxX/D8nl+QCaAT34jz1YB6Zsdmqmb7ckEcH8LSqiJ3Sjh2anLM3HDrd1\ngTl0Z7O0eEAae7+ON78gE+steWbgmgd2SQ+O5meFJM1pjg0hIGnK51bQhEY/\nV5IM7cjqxSpvFJulaIw8RPIzEYsD9UN6rJ1RNaLn/voSgaJtSeQpWloT9mhq\njcb5\r\n=LudP\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIDqhwJXpH8hIjeRmCuVuYKI3a2fo+fhUeqkw5KKQwNEUAiEAjzPlbxppSLCpvD3oQ9SFtehmoiEokhPQTw89czASm0Y="
    }
  ]
}

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

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 →