1.0.2 • Published 7 years ago

node-color-console-debugger v1.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

This is as lightweight and customizable debugger-tools for node.js that utilizes the terminal and the native colors that exists within the terminal.

The purpose of this console debugger is to help the developer easier find the code that they are debugging with easy customizable colors.

usage

require the pkg const lineToDebugg = require('node-console-debugger');

lineToDebugg.debugg("debugg code");

the code

in the index.js there is only one function with a colors object that contains some options:

then within the else statement you'll find this line of code:

console.log(colors.fg.Black, colors.bg.Yellow, code, colors.Reset);

1) first arg set debugg text color

2) second arg set debugg background color

3) third args is the line thats being debugged

4) resets the console to normal

Terminal usage example

No dependencies!

Open source feel free to do what-ever

made by 2lach 2018