Skip to content

lrlna/on-async-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

var onAsyncHook = require('on-async-hook')

onAsyncHook(function (data) {
  console.log(data)
})

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

npm install on-async-hook 

MIT