Current collected state Current
Observed since 20 Oct, 19:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2captcha
An asynchronous wrapper around the 2captcha API.
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.
| Package / target | Requirement | Relationship |
|---|---|---|
mochaEnvironment{
"local_name": "mocha",
"alias": false,
"peer_metadata": null
} | ^10.0.0 | runtime |
node-fetchEnvironment{
"local_name": "node-fetch",
"alias": false,
"peer_metadata": null
} | ^3.2.6 | runtime |
@types/eventsEnvironment{
"local_name": "@types/events",
"alias": false,
"peer_metadata": null
} | ^3.0.0 | development |
@types/node-fetchEnvironment{
"local_name": "@types/node-fetch",
"alias": false,
"peer_metadata": null
} | ^2.6.2 | development |
chaiEnvironment{
"local_name": "chai",
"alias": false,
"peer_metadata": null
} | ^4.3.6 | development |
dotenvEnvironment{
"local_name": "dotenv",
"alias": false,
"peer_metadata": null
} | ^16.0.0 | development |
mocha-parallel-testsEnvironment{
"local_name": "mocha-parallel-tests",
"alias": false,
"peer_metadata": null
} | ^2.3.0 | development |
ngrokEnvironment{
"local_name": "ngrok",
"alias": false,
"peer_metadata": null
} | ^4.3.1 | development |
tunnelEnvironment{
"local_name": "tunnel",
"alias": false,
"peer_metadata": null
} | ^0.0.6 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^4.7.0-dev.20220314 | development |
Source distribution
{
"integrity": "sha512-dv+eJpqJAJYai5YuYozDvekV619nsPcxlEILf15GqH9CEQ/Ipfi31kiEyecskt7cujF86UIhTHsUSGzqpFXy7Q==",
"shasum": "5e7d9c72cea156768a95038c51e860f0e5148a64",
"tarball": "https://registry.npmjs.org/2captcha/-/2captcha-4.0.0.tgz",
"fileCount": 37,
"unpackedSize": 123912,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQCq99CWmO0lfkw4qJVTwns2MaNnp+0Ea6b0dUewj7XVHwIgANA7k3w5O50gNp0T9/1mAW+Lnyx/hwc6UeZGo0XdJYo="
}
]
}Observed since 20 Oct, 19:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:c41079869aacddcf75b4e2afda916e4b363736bf18b5328d43a89ac102e12c9b