1.2.1 • Published 6 months ago

dcsm-print v1.2.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
6 months ago

dcsm-print

npm version License: MPL 2.0

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

A screenshot with a few examples of the output produced