Update notifications for your CLI app
Overall
score
97%
Build a command-line tool that programmatically checks for updates and provides detailed reporting about available updates for a package.
Your tool should accept command-line arguments to check for package updates and display different types of information based on the arguments provided.
The tool should support the following command structure:
node index.js --check-updatesWhen run with the --check-updates flag, the tool should:
The update report should display:
If no update is available, display a message indicating the package is up to date.
The tool should handle errors gracefully:
@generates
// Main entry point - processes command-line arguments and displays update information
function main() {
// IMPLEMENTATION HERE
}
// Entry point execution
if (require.main === module) {
main().catch(console.error);
}Provides programmatic update checking capabilities for the package.
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