answer-logger
v1.0.2
Published
an answer logger using stackoverflow api
Downloads
2
Maintainers
Readme
answer-logger
A simple tool to log answers to an error occur during a .catch(e).
Installation
npm install answer-logger
Usage
const answerLogger = require("answer-logger");
try {
await answerLogger(async () => {
const answer = await doSomething();
return answer;
});
} catch (e) {
// e is the answer
answerLogger.logger(e);
}