UNPKG

rgb-console-log

Version:

Enhance user engagement and streamline log readability with our vibrant console package. Effortlessly grab user attention and categorize logs based on their purpose using colorful formatting. Upgrade your console output to not only inform but also captiva

21 lines (18 loc) 500 B
const core = { background: "#fff", color: "#000", log:function(msg) { console.log('%c' + msg, `background: ${this.background}; color: ${this.color}; padding : 5px`) } } const changeAllProperies = (obj, _background, _color) => { const _obj = Object.create(obj) _obj.background = _background; _obj.color = _color; return _obj; } const coreModule = { core : core, changeAllProperies : changeAllProperies } export default coreModule