eXist-db / xst

Command line tool to interact with exist-db instances
https://npmjs.com/@existdb/xst
MIT License
18 stars 5 forks source link

Periodically check for updates #73

Open line-o opened 1 year ago

line-o commented 1 year ago

As for all packages that are globally installed command line utilities, it is easy for users to miss out on updates. This is why many of them, like npm for example, incorporate periodic update checks and display a message on the command line starting that a new version is available and how to update the package. I found three packages doing this

Conveniently, the check-kit readme contains a comparison table including all three of them.

update-notifier is by far the most used one with several thousand dependents. The real downside is that it will create and display the notification by itself whereas check-kit and update-check both allow to craft the message to your own liking. On the other hand the notification from update-notifier is well-known and understood and safely be considered production ready.