Take the logic of https://github.com/yeoman/update-notifier and just do the update behind the scenes.
Only meant for packages installed globally.
Options are to do the update when the program runs or auto-update as a background task so your globals are always up-to-date.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too