1.2.1 • Published 2 years ago
dcsm-print v1.2.1
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-printUsage
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