Update notifications for your CLI app
Overall
score
97%
TTY detection and output control
TTY Detection
100%
100%
Boolean Return
100%
100%
Stderr Output
100%
100%
TTY Suppression
100%
100%
Output Feedback
100%
100%
Correct Exports
100%
100%
Context-aware behavior (CI, test, npm script detection)
update-notifier import
100%
100%
Package metadata usage
100%
100%
Basic notification display
100%
100%
CI detection
100%
100%
Test environment handling
100%
100%
npm script behavior
100%
100%
Environment variable opt-out
100%
100%
TTY detection
100%
100%
Non-blocking update detection via detached background process
Package initialization
100%
100%
Background check invocation
20%
100%
Update notification display
0%
100%
Check interval configuration
100%
100%
State persistence
0%
100%
Proper API integration
50%
100%
Custom distribution tag support for pre-release tracking
updateNotifier import
0%
100%
distTag option usage
88%
100%
pkg object structure
100%
100%
updateCheckInterval configuration
100%
100%
notify() method
0%
0%
Environment-based disable
80%
100%
Return value handling
100%
100%
Multiple disable mechanisms (env, CLI, config)
Import update-notifier
100%
100%
Create notifier instance
100%
100%
Environment variable detection
100%
100%
CLI flag detection
100%
100%
Config-based opt-out
100%
100%
Call notify method
100%
100%
Class-based architecture with proper encapsulation
Class Constructor
100%
100%
Private Fields
100%
100%
recordCheck Method
100%
100%
getLastCheck Method
100%
100%
getCheckCount Method
100%
100%
Read-Only Accessors
100%
100%
Defensive Copying
53%
66%
Encapsulation Integrity
60%
80%
Semantic version intelligence and comparison
UpdateNotifier instantiation
100%
100%
fetchInfo() method usage
100%
100%
Update object access
40%
100%
Update type classification
20%
100%
Version comparison logic
40%
66%
Async/Promise handling
100%
100%
Performance-optimized imports for minimal overhead
Package Import
100%
100%
Package.json Import
100%
100%
Factory Initialization
100%
100%
Notify Method
100%
100%
Automatic Environment Detection
100%
100%
Deferred Notification
100%
100%
Automatic Caching
0%
100%
Programmatic update checking via fetchInfo() method
UpdateNotifier instantiation
100%
100%
fetchInfo() usage
100%
100%
Promise handling
100%
100%
Update info extraction
100%
100%
Conditional logic
100%
100%
Error handling
100%
100%
Sophisticated message templating with placeholders
Update notifier initialization
100%
100%
Custom message template
25%
100%
Placeholder substitution
0%
72%
Boxen options configuration
50%
100%
Border customization
33%
100%
Additional box styling
40%
100%
Install with Tessl CLI
npx tessl i tessl/npm-update-notifier