Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "cnysa", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "A tool for understanding async-hooks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
`cnysa` (unpronouncible) is a module that allows you to see information about what the `async_hooks` module is doing under the covers. `AsyncResources` and their lifecycle events are displayed neatly in rows (see bottom for examples). | ||
__Note: This module currently uses the `colors` module.__ | ||
# Pre-Require Hook | ||
@@ -70,5 +68,5 @@ | ||
```bash | ||
node --require ./register -e " \ | ||
node --require cnysa/register -e " \ | ||
fs.readFile('package.json', (err, contents) => { \ | ||
require('.').Cnysa.get().mark('hi'); \ | ||
require('cnysa').Cnysa.get().mark('hi'); \ | ||
})" | ||
@@ -75,0 +73,0 @@ ``` |
22060
75