Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rages-captcha

rage1ISC1.0.2

idk

readme

How to use

Example:

let captcha = require('rages-captcha');

let capClient = new captcha(key, url, gKey, proxy, proxytype); 

/*

key - 2captcha API key, 

url - website url where captcha you are trying to solve is on,

gKey - found in the captcha element (data-sitekey attribute of captcha element),

proxy and proxytype are not used for now


*/

//send request to solve captcha - if the request succseeds it will call getToken after 20s  with id it got from response
capClient.makeRequest();



//MAKE SURE YOU OVERWRITE `onResponse()` function and pass an argument for TOKEN!

capClient.onResponse = function(token){
    //captcha solved got token!
};