update-notifier is a Node.js package for informing command-line application users when a newer package version is available. It is designed to make update messages noticeable without delaying application startup or repeatedly interrupting users. Version checks run asynchronously in a separate unreferenced child process and are persisted for later runs. Developers can define how frequently checks occur and inspect information such as the installed version, latest version, package name, and update type. Notification messages and Boxen-based presentation options can be customized. Users can disable notifications through configuration, an environment variable, or a command-line flag. Checks are automatically skipped in environments such as continuous integration and unit tests.
Features
- Non-intrusive CLI update notifications
- Background npm version checking
- Configurable update-check intervals
- Major, minor, patch, and prerelease update detection
- Custom messages and notification box styling
- Configuration, environment, and CLI opt-out controls