dcsm-print
dcsm-print
is a simple console.log wrapper that shows more information when logging.
Installation
You can install dcsm-print
using npm:
npm install dcsm-print
Usage
To use dcsm-print
, simply import it in your code and use it like you would use console.log
:
import Print from 'dcsm-print';
Print('Hello, world!');
Print
to the console
Or add Print supports beeing used as console.print
:
import Print from 'dcsm-print';
console.print = function() {
Print(...arguments);
}
console.print('Hello, world!');
Terminal output
Print
or console.print
will display the row
, column
, file
, typeof
and where/within/function
it was executed/used.
The output is also colorized using ANSI 256 color code's