
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
timeoutn is a simple library for taming timed out async work
$ npm install timeoutn
Here is a simple timed example. Where we call done callback before async work has finished.
var timeoutn = require('timeoutn')
, timedout
function done(err) {
if (err) {
console.log(err)
}
if (timedout()) {
return console.log('Handle timed out scenario here')
}
...
}
timedout = timeoutn(2000, done, 'Error processing after 2000 ms')
setTimeout(done, 3000)
Or you could just use err passed to handle, for timed out scenario
var timeoutn = require('timeoutn')
function done(err) {
if (err) {
return console.log(err)
}
...
}
timeoutn(2000, done, 'Error processing after 2000 ms')
setTimeout(done, 3000)
Whenever you need to be sure that something has finished, and is not staling forever. You should setup timeout expectation and respond accordingly.
$ npm install
$ npm test
MIT
FAQs
Simple library for taming timed out async work
The npm package timeoutn receives a total of 2 weekly downloads. As such, timeoutn popularity was classified as not popular.
We found that timeoutn 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.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.