
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
cb-manager
Advanced tools
JavaScript callbacks, timeouts(setTimeout) and intervals(setInterval) manager
clean up all callbacks, timeouts and intervals at once
npm install cb-manager
var CbManager = require('cb-manager')
var cbm = CbManager()
var timeout = cbm.timeout(function(value) {
console.log('timeout value = ' + value)
}, 1000, 'value')
// timeout 1000 ms with 2 repeats
var interval = cbm.interval(function(value) {
console.log('interval value = ' + value)
}, 1000, 2, 'value')
// Also you can use equal simple alias cbm.cb(...)
var cb = cbm.callback(function(value) {
console.log('callback value = ' + value)
})
cbm.clear(timeout) // clear the timeout
cbm.clear(interval) // clear the interval
cbm.clear(cb) // block callback execution
cb('value') // No reaction, because callback is blocked
cbm.clearAll() // clear all timeouts, intervals and block all callbacks created by this instance
//...
// Callback usage example
http.get(options, cmb.cb(function(res) {
...
}));
// block callback execution
cmb.clearAll();
FAQs
JavaScript callbacks, timeouts(setTimeout) and intervals(setInterval) manager
We found that cb-manager 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.