coloured-logs

1.1.0 • Public • Published

coloured-logs

This package makes your console logs shine! It also adds the time of log too.

Demo Image

Installation

NPM installation:

$ npm install coloured-logs

Package usage:

const cons = require("coloured-logs");

Available log functions

cons.success("Message sent!");
cons.info("Request received!");
cons.error("Could not process file");
cons.response("Request returned status 200");
cons.server("Server listening on port 3000");

Configuration/customisation

You can optionally turn on/off the timestamp in every log. Timestamp is on by default.

cons.setConfig({
  timestamp: false
});

It will then apply for all logs executed after the setConfig() function.

Author

This package was made by SnakeByte, a proud user of Replit.

License and Usage

This package is licensed under the MIT License.

Feedback

If you encounter any issues, have questions, or need support, feel free to reach out to the package maintainer or open an issue on the project repository.

Readme

Keywords

Package Sidebar

Install

npm i coloured-logs

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

9.44 kB

Total Files

4

Last publish

Collaborators

  • snakebyte