@funboxteam/diamonds
Advanced tools
Comparing version 8.2.1 to 8.3.0
# Changelog | ||
## 8.3.0 (21.12.2021) | ||
Added `bold` mode to [colorize](./lib/colorize.ts). | ||
## 8.2.1 (03.08.2021) | ||
@@ -4,0 +9,0 @@ |
@@ -12,2 +12,3 @@ "use strict"; | ||
reset: "\u001B[0m" + str + "\u001B[0m", | ||
bold: "\u001B[1m" + str + "\u001B[22m", | ||
dim: "\u001B[2m" + str + "\u001B[22m", | ||
@@ -14,0 +15,0 @@ black: "\u001B[30m" + str + "\u001B[39m", |
@@ -10,2 +10,3 @@ // example: console.log(colorize('foo', 'bar').red); | ||
reset: "\u001B[0m" + str + "\u001B[0m", | ||
bold: "\u001B[1m" + str + "\u001B[22m", | ||
dim: "\u001B[2m" + str + "\u001B[22m", | ||
@@ -12,0 +13,0 @@ black: "\u001B[30m" + str + "\u001B[39m", |
@@ -1,3 +0,3 @@ | ||
declare type colors = 'reset' | 'dim' | 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'bgBlack' | 'bgRed' | 'bgGreen' | 'bgYellow' | 'bgBlue' | 'bgMagenta' | 'bgCyan' | 'bgWhite'; | ||
declare type colors = 'reset' | 'bold' | '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": "8.2.1", | ||
"version": "8.3.0", | ||
"description": "A shiny pile of typed JS helpers for everyday use", | ||
@@ -11,3 +11,4 @@ "scripts": { | ||
"build": "npm run build-esm-and-types && npm run build-cjs", | ||
"prepack": "npm run build" | ||
"prepack": "npm run build", | ||
"prepublishOnly": "lawyer" | ||
}, | ||
@@ -14,0 +15,0 @@ "sideEffects": false, |
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
80369
1179