on-async-hook

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3
  • 1.0.0
    2

Package Sidebar

Install

npm i on-async-hook

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

17.5 kB

Total Files

7

Last publish

Collaborators

  • lrlna