My new coloured-logs Node package

I made a npm package called coloured-logs that basically gives you functions to log to the console with some colour! It also has a timestamp feature.

Here is the link: https://www.npmjs.com/package/coloured-logs

Quickstart if you’re too busy to read README.md:

NPM installation:

$ npm install coloured-logs

Package usage:

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

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");

Please give feedback/bug reports by replying to this post, thanks :grin:

(I’ve also posted this on Ask)

3 Likes

wait so u copy pasted-

Ye

so it is like chalk but easier to use?

Yeah

you should add custom color changing in a config json file or something

1 Like

Yeah, that’s a nice idea. I’ll add that soon.