项目作者: lrlna

项目描述 :
async_hook trace emitter 🔍
高级语言: JavaScript
项目地址: git://github.com/lrlna/on-async-hook.git
创建时间: 2017-07-27T16:48:14Z
项目社区:https://github.com/lrlna/on-async-hook

开源协议:MIT License

下载


on-async-hook 🔍

npm version build status
downloads js-standard-style

async_hook trace emitter to help you with your tracing needs. Fair warning, async_hook api is only available in node 8, and is an under an experimental flag.

Usage

  1. var onAsyncHook = require('on-async-hook')
  2. onAsyncHook(function (data) {
  3. console.log(data)
  4. })

API

stop = onAsyncHook([opts], cb(data))

Create an instance of onAsyncHook. Calls a callback with data you can add to your logger.

stop()

Disable onAsyncHook instance.

Install

  1. npm install on-async-hook

MIT