Update notifications for your CLI app
Overall
score
97%
Build a CLI tool that checks whether a Node.js package has available updates and reports detailed version comparison information to users.
Your tool should accept a package name and current version as command-line arguments, then:
The tool should handle cases where:
@generates
/**
* Main entry point for the CLI tool
* Usage: node version-status.js <package-name> <current-version>
*/
/**
* Checks version status and displays results
* @param {string} packageName - The npm package name to check
* @param {string} currentVersion - The current version to compare against
* @returns {Promise<void>}
*/
async function checkVersionStatus(packageName, currentVersion);
/**
* Displays formatted version comparison results
* @param {object} versionInfo - Object containing version comparison data
* @param {string} versionInfo.packageName - Package name
* @param {string} versionInfo.current - Current version
* @param {string} versionInfo.latest - Latest available version
* @param {string} versionInfo.type - Update type classification
* @param {boolean} versionInfo.hasUpdate - Whether an update is available
*/
function displayResults(versionInfo);Provides package update checking functionality with semantic version intelligence.
@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