jtlapp / node-cleanup

installs custom cleanup handlers that run on exiting node
MIT License
164 stars 10 forks source link

Output no stderr messages by default #4

Closed jtlapp closed 7 years ago

jtlapp commented 7 years ago

The default has been and is currently to output [ctrl-C] and Uncaught exception... to stderr unless these messages are overridden. Overriding them with empty strings disables them.

It should not require work to disable text that is user-preference specific, so I'm going to change things up to output nothing to stderr by default. This would render the parameterless call nodeCleanup() meaningless, so it'll have to require at least one of the two parameters.

jtlapp commented 7 years ago

Did this for v2.1.