v1.0.0 - Initial Release
Initial Release
I am excited to announce the first official release of @onamfc/developer-log - a lightweight, zero-dependency console wrapper that automatically suppresses debug output in production environments.
Features
Core Functionality
- Automatic Production Suppression: All console output is automatically silenced when
NODE_ENV=production, keeping your production logs clean - Drop-in Replacement: Use
developerexactly like you would useconsole- no learning curve - Zero Dependencies: Lightweight package with no external dependencies
- Full TypeScript Support: Built with TypeScript, includes type definitions out of the box
Supported Console Methods
All standard console methods are fully supported:
Basic Logging
log()- General loggingerror()- Error messageswarn()- Warning messagesinfo()- Informational messagesdebug()- Debug messages
Advanced Methods
trace()- Stack tracetable()- Tabular data displaydir()- Object inspectiondirxml()- XML/HTML element inspection
Grouping
group()- Create message groupsgroupCollapsed()- Create collapsed message groupsgroupEnd()- End message groups
Timing & Performance
time()- Start timerstimeEnd()- End timerstimeLog()- Log elapsed time at checkpoints
Utilities
count()- Count occurrencescountReset()- Reset countersassert()- Assertion testingclear()- Clear console
Why use this package?
- Clean Production Builds: No need to manually remove or comment out debug statements
- Performance: Zero overhead in production - all methods become no-ops
- Type Safety: Full TypeScript support with proper type definitions
- Simplicity: One import, works everywhere
- Familiar API: If you know console, you already know developer