A lightweight frontend logger that runs only in local/dev environments
A smart logging library that automatically detects the environment based on the browser's hostname and outputs logs only in development environments.
# npm
npm install develog
# yarn
yarn add develog
# pnpm
pnpm add develogimport { develog } from 'develog';
develog.log('This log appears only in development environments');
develog.info('Info message');
develog.warn('Warning message');
develog.error('Error message');- Automatic Environment Detection - Based on hostname patterns
- Namespace Support - Separate logs by module
- Timestamp Support - 4 format options
- TypeScript Support - Full type safety
- Zero Dependencies - Lightweight package
- Production Safe - Automatically disabled in production
MIT License - See LICENSE.md
junjuny - @junjuny0227