codegyan-log-colorify
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Log Colorify

NPM version License npm downloads

The Log colorify provides a simple way to log messages with color-coded output in TypeScript.

Features

  • Supports multiple log levels: success, danger, info, debug, notice, warning, error, critical, alert.
  • Each log level has its own distinct color for easy identification.
  • Lightweight and easy to integrate into TypeScript projects.

Installation

  1. Make sure you have Node.js and npm installed on your machine.

  2. Install the Log colorify module using npm:

    npm install codegyan-log-colorify

Usages

Import the Log class into your TypeScript file and use the provided static methods to log messages:

import { Log } from 'codegyan-log-colorify';

Log.success('This is a success message');
Log.debug('This is a debug message');
Log.info('This is an info message');
Log.notice('This is a notice message');
Log.warning('This is a warning message');
Log.error('This is an error message');
Log.critical('This is a critical message');
Log.alert('This is an alert message');

License

This project is licensed under the MIT license - see the LICENSE file for details.

Contributing

Contributions are welcome! Fork the repository, make your changes, and submit a pull request.

Issues

If you encounter any issues or have suggestions, please open an issue on the GitHub repository

Package Sidebar

Install

npm i codegyan-log-colorify

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

4.91 kB

Total Files

5

Last publish

Collaborators

  • thecodegyan