dcsm-print
v1.2.1
Published
A simple alternative to console.log that shows more information when logging to the console in Node.js.
Downloads
14
Maintainers
Readme
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!');
Or add Print
to the console
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