@palett/util-ansi
Advanced tools
Comparing version 0.5.2 to 0.5.5
@@ -73,3 +73,3 @@ 'use strict'; | ||
const br = codes => L + codes.join(SC) + R; | ||
const chainEnclose = codes => L + codes.join(SC) + R; | ||
/** | ||
@@ -81,3 +81,3 @@ * | ||
const brt = code => L + code + R; | ||
const enclose = code => L + code + R; | ||
@@ -95,3 +95,8 @@ /** | ||
}; | ||
const hslToAnsi = hsl => { | ||
var _ref, _hsl; | ||
return _ref = (_hsl = hsl, convert.hslToRgb(_hsl)), rgbToAnsi(_ref); | ||
}; | ||
exports.BACK = BACK; | ||
@@ -108,5 +113,6 @@ exports.CLR_ALL = CLR_ALL; | ||
exports.SC = SC; | ||
exports.br = br; | ||
exports.brt = brt; | ||
exports.chainEnclose = chainEnclose; | ||
exports.enclose = enclose; | ||
exports.hexToAnsi = hexToAnsi; | ||
exports.hslToAnsi = hslToAnsi; | ||
exports.rgbToAnsi = rgbToAnsi; |
@@ -1,2 +0,2 @@ | ||
import { hexToInt } from '@palett/convert'; | ||
import { hexToInt, hslToRgb } from '@palett/convert'; | ||
@@ -69,3 +69,3 @@ const CLR_ALL = '0'; | ||
const br = codes => L + codes.join(SC) + R; | ||
const chainEnclose = codes => L + codes.join(SC) + R; | ||
/** | ||
@@ -77,3 +77,3 @@ * | ||
const brt = code => L + code + R; | ||
const enclose = code => L + code + R; | ||
@@ -91,3 +91,8 @@ /** | ||
}; | ||
const hslToAnsi = hsl => { | ||
var _ref, _hsl; | ||
export { BACK, CLR_ALL, CLR_BACK, CLR_FORE, ConsoleColors, ESC, Effects, FORE, L, R, SC, br, brt, hexToAnsi, rgbToAnsi }; | ||
return _ref = (_hsl = hsl, hslToRgb(_hsl)), rgbToAnsi(_ref); | ||
}; | ||
export { BACK, CLR_ALL, CLR_BACK, CLR_FORE, ConsoleColors, ESC, Effects, FORE, L, R, SC, chainEnclose, enclose, hexToAnsi, hslToAnsi, rgbToAnsi }; |
{ | ||
"name": "@palett/util-ansi", | ||
"version": "0.5.2", | ||
"version": "0.5.5", | ||
"description": "A color converter", | ||
@@ -19,3 +19,3 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@palett/convert": "^0.5.2" | ||
"@palett/convert": "^0.5.5" | ||
}, | ||
@@ -40,3 +40,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/palett/util-ansi#readme", | ||
"gitHead": "731886f4bc0fe1be384e492718f0aa493c8209e4" | ||
"gitHead": "f5d829829b4c51ca298c3daa24010f244dc844e6" | ||
} |
6987
185
Updated@palett/convert@^0.5.5