console-styles
Advanced tools
Comparing version 0.0.2 to 0.0.3
16
index.js
let styles = []; | ||
const modifiers = { | ||
const log = text => { | ||
console.log(`${styles.join("")}${text}\x1b[0m`); | ||
styles = []; | ||
} | ||
const styler = new Proxy({ | ||
reset: "\x1b[0m", | ||
@@ -27,10 +32,3 @@ bright: "\x1b[1m", | ||
bgWhite: "\x1b[47m", | ||
}; | ||
const log = text => { | ||
console.log(`${styles.join("")}${text}${modifiers.reset}`); | ||
styles = []; | ||
} | ||
const styler = new Proxy(modifiers, { | ||
}, { | ||
get: (target, prop) => { | ||
@@ -37,0 +35,0 @@ if (prop in target) { |
{ | ||
"name": "console-styles", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "a styled console logger with no dependencies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1839
40