alexbrazier / simple-update-notifier

Simple update notifier to check for npm updates for cli applications
MIT License
16 stars 9 forks source link

Add `debug` flag to `simpleUpdateNotifier()` #15

Closed voxpelli closed 2 years ago

voxpelli commented 2 years ago

Fixes #14

Aim was to add a debug explanation for all cases where an update notification would not be shown. That way one can easily understand whether its due to an error, an incorrect config or actually correct.

Edit: Printing to stderr so that it won't get caught in any of the standard stdout of the cli, which might be JSON output or whatever