xpl / ololog

A better console.log for the log-driven debugging junkies
https://www.npmjs.com/package/ololog
The Unlicense
215 stars 8 forks source link

Color object properies as console.log #33

Open Anton-V-K opened 1 year ago

Anton-V-K commented 1 year ago

I couldn't find a guideline how to preserve colors for object properies, so the console output may look similar to the one produced by console.log: image

const log = require ('ololog')
const os =          require("os");
const path = require('path');

log({"hello": "world!"});
console.log({"hello": "world!"});

Does the module provide such capabilities?