simple-logr
v1.0.3
Published
The SimpleLogr is a lightweight and easy-to-use logging utility for Node.js applications. This minimalist logging package empowers developers to add color and style to their console output effortlessly. With a focus on simplicity and flexibility, this log
Downloads
3
Maintainers
Readme
SimpleLogr
A lightweight and easy-to-use logging utility for Node.js.
Installation
npm install simple-logr
Usage
const Logr = require('simple-logr');
const logr = new Logr();
logr.success().bgWarning().log('This is a success message with a warning background.');
Features
Simple API for styling console output
Supports text color and background styling
Supported Colors
primary
secondary
error
info
success
light
dark
warning
Supported Styles
bold
underline
italic
strikethrough
Examples
const Logr = require('simple-logr');
const logr = new Logr();
// Log a success message with a bold style and a green color
logr.success().bold().log('Operation successful!');
// Log an error message with a red color and an underline
logr.error().underline().log('An error occurred.');
// Log an informational message with a cyan color and a background color
logr.info().log('Information: Remember to update.');
// ... and more
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
License
Simple-logr is licensed under the ISC License.
NOTE: Feel free to customize this template and include any additional details or usage instructions that you think would be helpful for users.