asyncexception
v1.0.0
Published
get async exception through async hook(node.js version is latter v8.0.0).
Downloads
19
Readme
asyncexction
catch async exception through async hook(node.js version is latter than V8.0.0).
Installation
npm install asyncexception
Example
'use strict';
const index = require('./index');
function throwException() {
setTimeout(function() {
var err = new Error();
console.log(index.getAsyncException());
}, 100);
}
throwException()