Giter Club home page Giter Club logo

color-logem-npm's Introduction

color-logem-npm

color-logem - A Lightweight and Customizable Colorful Console Logger

Features

  • Customizable colors and styles for console output
  • Lightweight and easy to use
  • Supports logging to the console in a variety of colors and styles, including red, green, yellow, blue, magenta, and cyan

Installation

You can install color-logem using npm:

npm install @buike/color-logem

Usage

import { log , info, warning, error } = require("@buike/color-logem");

# Log a blue message to the console with white background and bold text
log("Hello, world!");

# Log a blue message to the console with white background and bold text
info("info: some information!");

#  Log a yellow warning message to the console with white background and bold text
warning("Warning: something went wrong!");

#  Log a red error message to the console with white background and bold text
error("Error: something went terribly wrong!");

API

log(args: any) Logs a message to the console in blue text with white background and bold text.

info(args: any) Logs an information message to the console in blue text with white background and normal text.

warning(args: any) Logs a warning message to the console in yellow text with white background and bold text.

error(args: any) Logs an error message to the console in red text with white background and bold text.

License

color-logem is released under the MIT License. See LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue if you encounter any bugs or have any suggestions for improvement.

color-logem-npm's People

Contributors

ogubuike245 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.