
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
If only there was a way to pass along a callback with exactly as many arguments as necessary.
If only there was a way to pass along a callback with exactly as many arguments as necessary.
You know how you like chaining asynchronous function calls but sometimes weird arguments get in the way of your waterfall series with unpredictable arguments?
How about attempting to parseInt in a map only to find out map spews three arguments? What if you could CONTROL THIS nonsense?
npm install butt --save
Functional arguments giving you headaches?
n.map(function (val) {
return parseInt(val);
});
n.map(butt(parseInt, 1));
Works on .forEach or any functional array method as well! Classy.
n.forEach(function (val) {
console.log(val);
});
n.forEach(butt(console.log, 1));
Mongoose being weird?
async.waterfall([
function (next) {
new User(model).save(function (err) {
next(err);
});
},
function (next) {
// MOAR CODE
}
])
async.waterfall([
function (next) {
new User(model).save(butt(next, 1));
},
function (next) {
// MOAR CODE
}
])
It had to be done. It is known.
MIT
FAQs
If only there was a way to pass along a callback with exactly as many arguments as necessary.
We found that butt 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.