As a developer, I was tired of shipping apps full of console.logs. Debugging locally is fine, but in production it looks messy, unprofessional, and sometimes even risky. So I built my first open-source package to fix it.
π‘ Meet no-console-production
π NPM Package: https://www.npmjs.com/package/no-console-production
A lightweight library (~2KB) that automatically hides console logs in production while keeping errors visible for monitoring.
β¨ Features
π‘οΈ Smart defaults β detects environment, hides logs/warnings, preserves errors.
βοΈ React-ready β hooks + providers for easy integration.
π― Developer-friendly β TypeScript support, granular control, fast, tiny bundle.
π§ Flexible β suppress all methods or just specific ones.
π¦ NPM: no-console-production
π Why it matters
Cleaner, more professional apps
Better performance (no useless console ops)
Reduced risk of leaking sensitive data
π First OSS Contribution
This is my first open-source project and it taught me a lot about npm publishing, TypeScript libraries, and performance optimization. Iβd love your feedback:
β Star the repo
π Report issues
π‘ Suggest features
Your support will help me grow as a developer and improve this tool for everyone!
Top comments (0)