Skip to content

v1.0.0 - Initial Release

Choose a tag to compare

@onamfc onamfc released this 30 Sep 20:59
· 19 commits to main since this release
f0d0351

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 developer exactly like you would use console - 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 logging
  • error() - Error messages
  • warn() - Warning messages
  • info() - Informational messages
  • debug() - Debug messages

Advanced Methods

  • trace() - Stack trace
  • table() - Tabular data display
  • dir() - Object inspection
  • dirxml() - XML/HTML element inspection

Grouping

  • group() - Create message groups
  • groupCollapsed() - Create collapsed message groups
  • groupEnd() - End message groups

Timing & Performance

  • time() - Start timers
  • timeEnd() - End timers
  • timeLog() - Log elapsed time at checkpoints

Utilities

  • count() - Count occurrences
  • countReset() - Reset counters
  • assert() - Assertion testing
  • clear() - 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