minprogramador/captcha.js

#1
1634286246481.png
https://githubmemory.com/repo/minprogramador/captcha.js

2captcha.js
example:
Code:
const captcha = require('../captcha/captcha.js');
const Cap = new captcha({key: 'xxxx'});

const run = async (xx) => {
let img    = xx.img;
let envia  = await Cap.send(img);

if(envia !== false) {
console.log(envia, `<---\n\n`);
let check = await Cap.check(envia);
console.log(check);
}else{
console.log(envia);
}
};

let x = {
img:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABLCAIAAAC6Hl+/AAAa9ElEQVR42u1dC1RVVd7fgEqlljo9JrXHTNPSnHKWq5xZk+lyfZXTfGnLZZPNl2u+mpq+JkubVVM+Mi1QU3yhIL5ACRABeYkiioKXN0qQD0DUSBABAUElBRRhf79z/7DZd59zLxcuPmZ59zrrrvu/Z+999uO3/6/93+cy5kzOdINSa2srN6fW9uQknaQjZBuwms0JvzZLyUk6yW6THRzrwoULBw4cwCfhzkk6SUfINmDRDYLbAXNykk7SEbJDzRIMDTecpJN0kGxDFbEvSpTDSTpJR0gDYF0wJyfpJB0hO3Qs+baTdJIOkqryTj85SZkMy8pa3NAwpbX1wcZG1tDQq7XVnfOBnP+htpZt2TKvoCD/0iXnWCmkBbCcbFwhwzMz/6uqinHOzp5lJhPLymLl5cAWu3aNNTVBgWA5OSwtrU9GRv7x486hk0kLHYsQJlSwO52cPPme69c1JGVkaNiyfdXWOodOJjuApbCuO52cMkWDS3Y2+/nnzlGFa9Uq59BZ8Cqn8q4nvzt40L2lRRN89kDKfP1p+/b9+/fX1NTgMykpKdmcnMo7k284yWcuXmTFxZouJUHHvalpWmAgu/vuPXv27Ny588SJE74BAeyxx6YEBv42JWXxjh0xMTEoG2NOpaWl+/btu5NH0oJpOTm5Rk6YoCHpyBEZVa7NzfHp6efOnaPMW7ZsMZlM4ElErl+/nlgUkRs3bszNzQW27uSRVEWhIhbvQFJzInz/vSLp3ggJAaMiSK1du3blypXLli0DuUxKgsRdYAskZOKdPJJtwJLhdseS8WlpbkBSTo6qR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