Open piranna opened 8 years ago
this would be quite useful - though I'm not a maintainer on this package, if you submit a PR I'd be happy to review it!
I've create a pull-request for this at https://github.com/mafintosh/why-is-node-running/pull/11
@piranna would you still be interested in this? I think we can pretty easily export a function to get the internal objects we use for the representation out of there.
Instead of just print the results on the console, allow to get an object with them. This would allow to inspect them better combined with some testing framework, specially when tests pass but the test process don't exit due to some missing open handlers.