Current collected state Current
Observed since 20 Oct, 19:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
<center> <h1> 2captcha </h1>
2captcha is a service that solves many different types of captchas, this library serves as a wrapper around their API to bring easy, promise-based functionality to NodeJS. This libary specilizes in concurrent solves, and bulk-api usage.
npm install 2captcha@next
yarn add 2captcha@next
Recaptcha,
const Captcha = require("2captcha")
// A new 'solver' instance with our API key
const solver = new Captcha.Solver("<Your 2captcha api key>")
/* Example ReCaptcha Website */
solver.recaptchaV2("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/")
.then((res) => {
console.log(res)
})
.catch((err) => {
console.error(err.message)
})
Image,
const Captcha = require("2captcha")
const fs = require("fs")
const solver = new Captcha.Solver("<Your 2captcha api key>")
// Read from a file as base64 text
solver.imageCaptcha(fs.readFileSync("./captcha.png", "base64"))
.then((res) => {
// Logs the image text
console.log(res)
})
.catch((err) => {
console.error(err.message)
})
Proxy,
const Captcha = require("2captcha")
const solver = new Captcha.Solver("<Your 2captcha api key>")
solver.recaptchaV2("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/", true /* for proxied */, false /* not enterprise */, {
proxy: "21.214.43.26", // The (Username : Password @ Address) of our chosen proxy
proxyType: "HTTP", // The 'Type' of proxy, http, https, socks, ect.
proxyLogin: "username",
proxyPassword: "password123"
})
.then((res) => {
console.log(res)
})
.catch((err) => {
console.error(err.message)
})
The latest version of the code base will always be under the 'next' branch!
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 4.0.0-1 | 29 Mar 2024 | 10 | |
| 4.0.0 | 28 Mar 2024 | 10 | |
| 3.0.5-2Registry latest | 20 Mar 2024 | 5 | |
| 3.0.5-1 | 20 Mar 2024 | 5 | |
| 3.0.7 | 12 Jun 2023 | 5 | |
| 3.0.6 | 28 Apr 2023 | 5 | |
| 3.0.5 | 11 Jul 2022 | 5 | |
| 3.0.4 | 24 Apr 2022 | 5 | |
| 3.0.3 | 10 Mar 2022 | 5 | |
| 3.0.2 | 3 Mar 2022 | 5 | |
| 3.0.1 | 1 Feb 2022 | 3 | |
| 3.0.0 | 1 Feb 2022 | 3 | |
| 2.2.1 | 22 Jan 2022 | 3 | |
| 2.2.0 | 22 Jan 2022 | 3 | |
| 2.1.10 | 12 Nov 2021 | 3 | |
| 2.1.9 | 30 Sept 2021 | 3 | |
| 2.1.8 | 30 Sept 2021 | 3 | |
| 2.1.7 | 17 May 2021 | 3 | |
| 2.1.5-3 | 22 Apr 2021 | 3 | |
| 2.1.6 | 6 Apr 2021 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d32fb2f08dc1aa7b5609e252f78ef93725b912a95d6e4385566fc29978408776