Update notifications for your CLI app
Overall
score
97%
Build a simple utility that displays customized update notifications for a CLI application.
Create a notification display utility that shows update alerts with customized messages and styling.
Your utility should support message templates that include dynamic placeholders. The message can be customized to include information like:
Example: A template like "Update {packageName} from {currentVersion} to {latestVersion}" should display with actual values substituted.
The notification should appear in a styled box with customizable appearance:
@generates
/**
* Creates and displays a customized update notification
*
* @param {Object} options - Configuration options
* @param {Object} options.pkg - Package information with name and version
* @param {Object} [options.notifyOptions] - Notification display options
* @param {string} [options.notifyOptions.message] - Custom message template
* @param {Object} [options.notifyOptions.boxenOptions] - Box styling options
*/
function createNotifier(options);Provides update checking and notification capabilities for CLI applications.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-update-notifierdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10