asyncexception

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i asyncexception

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • spursyy