npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ehfuse/console-log-override

v1.0.4

Published

Secure console logging library that activates sensitive data masking, infinite loop detection, and environment-aware overrides only in production environments

Readme

Console Log Override

🛡️ Secure console logging library that activates sensitive data masking, infinite loop detection, and environment-aware overrides only in production environments

🛡️ 운영 환경에서만 민감한 데이터 마스킹, 무한루프 감지 등의 보안 기능이 활성화되는 콘솔 로깅 라이브러리

npm version License: MIT

Features

  • Sensitive Data Masking: Automatically mask passwords, tokens, and sensitive information
  • Infinite Loop Detection: Prevent console spam with automatic loop detection
  • Environment Aware: Different behavior for development vs production
  • Call Location Tracking: Track where logs are called from (production mode)
  • Dynamic Configuration: Runtime configuration of patterns and settings
  • Zero Dependencies: Pure TypeScript implementation

주요 기능

  • 민감한 데이터 마스킹: 비밀번호, 토큰, 민감한 정보를 자동으로 마스킹
  • 무한루프 감지: 자동 루프 감지로 콘솔 스팸 방지
  • 환경별 동작: 개발 환경과 운영 환경에서 다른 동작
  • 호출 위치 추적: 로그가 호출된 위치 추적 (운영 모드)
  • 동적 설정: 패턴과 설정의 런타임 구성
  • 의존성 없음: 순수 TypeScript 구현

Quick Start

npm install @ehfuse/console-log-override
// Simply import to activate
import "@ehfuse/console-log-override";

// Your existing console.log calls are now secure!
console.log("Password: 123456"); // Output: Password: [MASKED]

API Signatures

Core Functions

// Console restoration
// 콘솔 복원
restoreConsoleOverride(): void

// Log level management
// 로그 레벨 관리
setConsoleLogLevel(level: LogLevel): void
getConsoleLogLevel(): LogLevel

// Call location tracking
// 호출 위치 추적
setShowCallLocation(enabled: boolean): void
getShowCallLocation(): boolean

Sensitive Data Management

// Pattern management
// 패턴 관리
getSensitivePatterns(): RegExp[]
setSensitivePatterns(patterns: RegExp[]): void
addSensitivePattern(pattern: RegExp): void

// Field management
// 필드 관리
getSensitiveFields(): string[]
setSensitiveFields(fields: string[]): void
addSensitiveField(field: string): void

// Whitelist management
// 화이트리스트 관리
getWhitelistPatterns(): RegExp[]
setWhitelistPatterns(patterns: RegExp[]): void
getWhitelistFields(): string[]
setWhitelistFields(fields: string[]): void

Loop Detection

// Loop detection control
// 루프 감지 제어
setLoopDetectionEnabled(enabled: boolean): void
getLoopDetectionEnabled(): boolean
setMaxRepeatedLogs(count: number): void
getMaxRepeatedLogs(): number

Enums

enum LogLevel {
    DEBUG = 0,
    INFO = 1,
    WARN = 2,
    ERROR = 3,
}

Documentation

📖 Detailed guides available in multiple languages:

License

MIT © ehfuse