tiny-crayon
Advanced tools
Comparing version 1.0.3 to 1.0.4
module.exports = new Crayon() | ||
module.exports.Crayon = Crayon | ||
function Crayon (stream = process.stdout) { | ||
function Crayon (stream) { | ||
if (!stream) stream = process._stdout ? { isTTY: true } : process.stdout | ||
const modifiers1 = { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24] } | ||
@@ -6,0 +8,0 @@ const modifiers2 = { overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] } |
{ | ||
"name": "tiny-crayon", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Terminal string styling", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5148
55