@funboxteam/diamonds
Advanced tools
Comparing version 6.2.1 to 6.3.0
# Changelog | ||
## 6.3.0 (08.10.2020) | ||
Add `dim` and `reset` colors to [colorize](./lib/colorize.ts). | ||
## 6.2.1 (05.10.2020) | ||
@@ -4,0 +8,0 @@ |
@@ -11,2 +11,4 @@ "use strict"; | ||
return { | ||
reset: "\u001B[0m" + str + "\u001B[0m", | ||
dim: "\u001B[2m" + str + "\u001B[22m", | ||
black: "\u001B[30m" + str, | ||
@@ -13,0 +15,0 @@ red: "\u001B[31m" + str, |
@@ -9,2 +9,4 @@ // example: console.log(colorize('foo', 'bar').red); | ||
return { | ||
reset: "\u001B[0m" + str + "\u001B[0m", | ||
dim: "\u001B[2m" + str + "\u001B[22m", | ||
black: "\u001B[30m" + str, | ||
@@ -11,0 +13,0 @@ red: "\u001B[31m" + str, |
@@ -1,3 +0,3 @@ | ||
declare type colors = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'bgBlack' | 'bgRed' | 'bgGreen' | 'bgYellow' | 'bgBlue' | 'bgMagenta' | 'bgCyan' | 'bgWhite'; | ||
declare type colors = 'reset' | 'dim' | 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'bgBlack' | 'bgRed' | 'bgGreen' | 'bgYellow' | 'bgBlue' | 'bgMagenta' | 'bgCyan' | 'bgWhite'; | ||
declare const _default: (...args: string[]) => Record<colors, string>; | ||
export default _default; |
{ | ||
"name": "@funboxteam/diamonds", | ||
"version": "6.2.1", | ||
"version": "6.3.0", | ||
"description": "A shiny pile of typed JS helpers for everyday use", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72862
1080