1.0.4 • Published 2 years ago

clogsjs v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

cLogs.js

author-imageNPM version]npm-url js-imageMIT License]license-url

logo

Minimalistic NodeJS library for more informative output in the console.log.

cLogs provides three colors for more informative display of logs. You can use:

  • Red - for the most important messages.

  • Green - to notify about completion of work or about a successfully received request.

  • Yellow - for warnings or implicit instructions.

You can also use cLogs without passing an argument. In this case, the output will be the default color of your shell.

cLogs also displays the current date and time using the dependency - moment.js

Installation

Use npm:

npm install clogsjs

Tutorial

Import cLogs into your application:

const cLogs = require('clogsjs');

cLogs('Error! User unavailable', 'red');
cLogs('Success! User sync complete', 'green');
cLogs('Warning! User structure not found', 'yellow');
cLogs('This is just a regular log');

Output:

output.png

License

cLogs.js is freely distributable under the terms of the MIT license.

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago