mafintosh / why-is-node-running

Node is running but you don't know why? why-is-node-running is here to help you.
MIT License
1.85k stars 44 forks source link

Programatic usage #10

Open piranna opened 8 years ago

piranna commented 8 years ago

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.

yoshuawuyts commented 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!

piranna commented 8 years ago

I've create a pull-request for this at https://github.com/mafintosh/why-is-node-running/pull/11

jonkoops commented 2 months ago

@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.