@palett/util-ansi
Advanced tools
Comparing version
@@ -8,4 +8,6 @@ 'use strict'; | ||
const CLR_ALL = '0'; | ||
const ESC = '\u001b'; | ||
const L = '\u001b['; | ||
const ESC = ''; | ||
const CSI = '['; | ||
const SGR = 'm'; | ||
const L = '['; | ||
const R = 'm'; | ||
@@ -74,3 +76,3 @@ const SC = ';'; | ||
const chainEnclose = codes => L + codes.join(SC) + R; | ||
const chainEnclose = codes => CSI + codes.join(SC) + SGR; | ||
/** | ||
@@ -82,3 +84,3 @@ * | ||
const enclose = code => L + code + R; | ||
const enclose = code => CSI + code + SGR; | ||
@@ -85,0 +87,0 @@ /** |
import { hexToInt, hslToRgb } from '@palett/convert'; | ||
const CLR_ALL = '0'; | ||
const ESC = '\u001b'; | ||
const L = '\u001b['; | ||
const ESC = ''; | ||
const CSI = '['; | ||
const SGR = 'm'; | ||
const L = '['; | ||
const R = 'm'; | ||
@@ -69,3 +71,3 @@ const SC = ';'; | ||
const chainEnclose = codes => L + codes.join(SC) + R; | ||
const chainEnclose = codes => CSI + codes.join(SC) + SGR; | ||
/** | ||
@@ -77,3 +79,3 @@ * | ||
const enclose = code => L + code + R; | ||
const enclose = code => CSI + code + SGR; | ||
@@ -80,0 +82,0 @@ /** |
{ | ||
"name": "@palett/util-ansi", | ||
"version": "0.7.9", | ||
"version": "0.7.10", | ||
"description": "A color converter", | ||
@@ -19,3 +19,3 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@palett/convert": "^0.7.9" | ||
"@palett/convert": "^0.7.10" | ||
}, | ||
@@ -43,3 +43,3 @@ "devDependencies": { | ||
"homepage": "https://github.com/hoyeungw/palett/util-ansi#readme", | ||
"gitHead": "122d02cbfff85a82d703afb1ee1a30b38789cd02" | ||
"gitHead": "ddfad2a10d138a1f32f77faa7916bbc60c7e89cc" | ||
} |
7118
0.96%189
2.16%Updated