1.1.0 • Published 11 months ago

better-node-print v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

better-node-print

Version npm Downloads npm

A Node.js package to make prettier console.log() messages.

Table of Content

Installing

npm install better-node-print

Example

const { print, C, CB, R, printc } = require('better-node-print');

print(C.yellow, "Hello", R, CB.red, " World!", R);
// 'Hello': Yellow Text, ' World!': Red Background

// C -> Text Color, CB -> Background Color, R -> Reset Colors
print(`${C.yellow}, "Hello", ${R+CB.red}, " World!", ${R}`);
// 'Hello': Yellow Text, ' World!': Red Background

print([
  {text: "Hel", color: "yellow"},
  {text: "lo", bgColor: "red"},
  {text: " World.", color: "magenta", bgColor: "green"}
]);
1.1.0

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago