
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
deathbycaptcha
Advanced tools
v0.0.2
Node.js client library for the DeathByCaptcha service.
DeathByCaptcha.js is available in npm.
npm install deathbycaptcha
Using the API goes a little something like this:
DeathByCaptcha = require("deathbycaptcha");
var dbc = new DeathByCaptcha("your_dbc_user", "your_dbc_pass");
dbc.solve(fs.readFileSync("/your/captcha/file"), function(err, id, solution) {
if(err) return console.error(err); // onoes!
if(solution !== "moo") {
// It was wrong!
dbc.report(id, function(err) {
if(err) return console.error(err); // ONOES!
});
}
});
Send a CAPTCHA image file to DeathByCaptcha to solve.
DeathByCaptcha.solve(captchaImage, callback);
Callback accepts three parameters:
Example:
dbc.solve(fs.readFileSync("/your/captcha/file"), function(err, id, solution) {
if(err) return console.error(err);
console.log("CAPTCHA solution is", solution);
});
Gets a previously solved (or in progress) CAPTCHA by ID. If the CAPTCHA is still in progress the callback will wait for it.
DeathByCaptcha.get(captchaId, callback);
Callback takes 3 arguments:
Example:
dbc.get(12345, function(err, solution, isCorrect) {
if(err) return console.error(err);
// isComplete is false if the CAPTCHA has been reported (see below).
console.log("Captcha solution is", solution);
console.log("Is it correct?", isCorrect);
});
Use this if you have reason to believe DeathByCaptcha incorrectly solved your CAPTCHA image.
DeathByCaptcha.report(captchaId, callback);
Callback will be handed an error if something went wrong, else nothing will be passed.
Example:
dbc.report(12345, function(err) {
if(err) return console.error(err);
console.log("CAPTCHA was reported successfully.")
console.log("If it wasn't older than an hour, it should have refunded");
});
Loads balance stats for your account from DeathByCaptcha.
DeathByCaptcha.balance(callback);
Callback:
Example:
dbc.balance(function(err, credits, balance, rate) {
if(err) return console.error(err);
console.log(credits + " credits remaining");
console.log("($" + (balance / 100) + " @ " + rate + "c/solution");
});
deathbycaptcha.js is Copyright (c) 2012 Sam Day
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
See COPYING
for more information.
FAQs
DeathByCaptcha Node.js client
The npm package deathbycaptcha receives a total of 141 weekly downloads. As such, deathbycaptcha popularity was classified as not popular.
We found that deathbycaptcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.