dcsm-print
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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

Package Sidebar

Install

npm i dcsm-print

Weekly Downloads

3

Version

1.2.1

License

MPL-2.0

Unpacked Size

242 kB

Total Files

9

Last publish

Collaborators

  • david-schofield