uncaptcha

reCAPTCHA helper using decaptcher

reCAPTCHA helper using decaptcher

$ npm install uncaptcha

getting a valid solved challenge

var Uncaptcha = require('uncaptcha');
 
var uncaptcha = new Uncaptcha({key: /* reCAPTCHA key */, decaptcherKey: /* decaptcher key */});
 
uncaptcha.decode().done(
    function (result) {
        console.log(result); // { challenge: '...', decoded: '...', genTaskID: '...' } 
    },
    function (error) {}
);

getting a refund for a bad solve from decaptcher

uncaptcha.refund(/* genTaskID */).done(
    function (result) {
        console.log(result); // ok 
    },
    function (error) {}
);