kinglog-lite
v1.0.3
Published
kinglog-lite is a lightweight and developer-friendly Node.js logging library that provides clean, readable, and emoji-based terminal logs. It helps developers format console output beautifully for debugging, CLI tools, and everyday development workflows
Maintainers
Readme
✨ kinglog-lite
A clean, colorful terminal logger for Node.js — 82-character styled logs for success, error, warning, and info.
👨💻 Author
Developed by Er. Ravi
📧 Email: [[email protected]]
🏷️ Tagline
Built by a Developer, for Developers 🚀
🚀 Features
- 📐 Fixed 82-character log formatting
- 🎨 Color-coded log levels
- 🧾 Auto-wrapped, readable messages
- 🧠 Smart default fallbacks
- 🪶 Lightweight & easy to integrate
📦 Installation
npm install kinglog-lite
# or
yarn add kinglog-lite📖 Usage
import { successLogs, errorLogs, infoLogs, warningLogs } from "kinglog-lite";
successLogs("✅ User created successfully");
errorLogs("❌ Failed to connect to the database");
infoLogs("ℹ️ Server is running on port 3000");
warningLogs("⚠️ Low disk space detected");🧪 Output
Example output (with colors):
[SUCCESS] User created successfully 00:00:01 PM
[ERROR ] Failed to connect to the database 00:00:02 PM
[INFO ] Server is running on port 3000 00:00:03 PM
[WARNING] Low disk space detected 00:00:04 PMThe logger keeps each line neatly within 80 characters.
🧰 API
successLogs(message?: string)
Logs a green success message.
errorLogs(message?: string)
Logs a red error message.
infoLogs(message?: string)
Logs a blue info message.
warningLogs(message?: string)
Logs a yellow warning message.
🧱 Why kinglog-lite?
Most logging libraries dump too much information or no style at all. kinglog-lite keeps it:
- ✨ Clean — fixed-width output
- 🎯 Focused — only the message and time
- 🌈 Colorful — consistent styling out of the box
🤝 Contributing
Contributions, pull requests, and feature ideas are welcome 🤝
📄 License
MIT © Er Ravi
