Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
passerror
Advanced tools
Readme
Handle success and failure with two different callbacks. Lets you get
rid of most if (err) return cb(err);
constructs.
Send errors reported by fs.readFile
straight to cb
:
var passError = require('passerror'),
fs = require('fs');
function getLines(fileName, cb) {
fs.readFile(fileName, 'utf-8', passError(cb, function (contents) {
cb(null, contents.split(/\r?\n|\n?\r/));
}));
}
Licensed under a standard 3-clause BSD license -- see the
LICENSE
-file for details.
FAQs
Simple helper for handling error and success with two different callbacks
The npm package passerror receives a total of 57,905 weekly downloads. As such, passerror popularity was classified as popular.
We found that passerror 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.