1.0.0 • Published 7 years ago

asyncexception v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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()
1.0.0

7 years ago