New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/text-format

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/text-format - npm Package Compare versions

Comparing version

to
1.3.0

presets.d.ts

16

api.d.ts

@@ -55,2 +55,18 @@ import type { Fn, Keys } from "@thi.ng/api";

lightYellow: number;
bgBlack: number;
bgBlue: number;
bgCyan: number;
bgGray: number;
bgGreen: number;
bgMagenta: number;
bgRed: number;
bgWhite: number;
bgYellow: number;
bgLightBlue: number;
bgLightCyan: number;
bgLightGray: number;
bgLightGreen: number;
bgLightMagenta: number;
bgLightRed: number;
bgLightYellow: number;
};

@@ -57,0 +73,0 @@ export type PresetID = Keys<typeof PRESETS_TPL>;

@@ -61,2 +61,18 @@ // bits 0-3: fg

lightYellow: FG_LIGHT_YELLOW,
bgBlack: BG_BLACK,
bgBlue: BG_BLUE,
bgCyan: BG_CYAN,
bgGray: BG_GRAY,
bgGreen: BG_GREEN,
bgMagenta: BG_MAGENTA,
bgRed: BG_RED,
bgWhite: BG_WHITE,
bgYellow: BG_YELLOW,
bgLightBlue: BG_LIGHT_BLUE,
bgLightCyan: BG_LIGHT_CYAN,
bgLightGray: BG_LIGHT_GRAY,
bgLightGreen: BG_LIGHT_GREEN,
bgLightMagenta: BG_LIGHT_MAGENTA,
bgLightRed: BG_LIGHT_RED,
bgLightYellow: BG_LIGHT_YELLOW,
};

10

CHANGELOG.md
# Change Log
- **Last updated**: 2023-03-14T13:27:20Z
- **Last updated**: 2023-03-16T11:22:27Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,10 @@

## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-format@1.3.0) (2023-03-16)
#### 🚀 Features
- add PRESET_ANSI16, update PRESETS_TPL ([33a69cc](https://github.com/thi-ng/umbrella/commit/33a69cc))
- add bg colors to PRESETS_TPL (and therefore `defFormatPresets()`)
- add PRESET_ANSI16 to reduce boilerplate
## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-format@1.2.0) (2022-06-28)

@@ -14,0 +22,0 @@

@@ -6,2 +6,3 @@ export * from "./api.js";

export * from "./none.js";
export * from "./presets.js";
//# sourceMappingURL=index.d.ts.map

@@ -6,1 +6,2 @@ export * from "./api.js";

export * from "./none.js";
export * from "./presets.js";

7

package.json
{
"name": "@thi.ng/text-format",
"version": "1.2.21",
"version": "1.3.0",
"description": "Customizable color text formatting with presets for ANSI & HTML",

@@ -95,2 +95,5 @@ "type": "module",

"default": "./none.js"
},
"./presets": {
"default": "./presets.js"
}

@@ -104,3 +107,3 @@ },

},
"gitHead": "cc46c097a3a173fb1ef41f57a858d03037063141\n"
"gitHead": "f493d89d81d450ca67adf4f574b08840cba87807\n"
}

@@ -168,2 +168,3 @@ <!-- This file is generated - DO NOT EDIT! -->

```ts
// since v1.3.0 also available as PRESET_ANSI16
const ansi = defFormatPresets(FMT_ANSI16);

@@ -210,3 +211,3 @@

Package sizes (brotli'd, pre-treeshake): ESM: 1.54 KB
Package sizes (brotli'd, pre-treeshake): ESM: 1.61 KB

@@ -213,0 +214,0 @@ ## Dependencies