1.0.0 • Published 8 years ago
throwor v1.0.0
Utility async handler
fs.readFile(
"testData.txt",
"utf8",
throwOr(/* err, */data => {
// Usually you need to write:
// if (err) throw err;
console.log(data)
}),
);
1.0.0
8 years ago