1.1.0 • Published 8 months ago

coloured-logs v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.

1.1.0

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago