linegauge 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -19,6 +19,10 @@ against a line of type and checks it fits the measure it was set to.
19
19
 
20
20
  Zero dependencies. Grapheme-correct over the platform's own `Intl.Segmenter`.
21
21
 
22
+ Drop-in paths for **string-width** (the default export), **wrap-ansi**, **strip-ansi** and
23
+ **slice-ansi**. Nothing here reads `process`, so a pipe, `--json` and an agent get the same
24
+ columns a terminal does — burgee, caique and flagstaff measure their output with it.
25
+
22
26
  ```bash
23
27
  npm i linegauge
24
28
  ```
@@ -56,7 +60,7 @@ widest(['a', 'bbb', 'cc']); // 3
56
60
  Byte-for-byte call-compatible, so this resolves without a code change:
57
61
 
58
62
  ```json
59
- { "overrides": { "string-width": "npm:linegauge@^0.2" } }
63
+ { "overrides": { "string-width": "npm:linegauge@^0.4" } }
60
64
  ```
61
65
 
62
66
  ## What "without the edge fraying" means
@@ -165,7 +169,7 @@ its own suite — which this package passes. The runner reports that as a failur
165
169
  to the incumbent an unexpected pass means a stale annotation; it is counted here as the
166
170
  pass it is, and marked rather than left to look like the ones beside it.
167
171
 
168
- Weight, installed and tree-inclusive: **84,371 bytes** against **170,342** for the incumbents it replaces — a ratio of **0.4953**.
172
+ Weight, installed and tree-inclusive: **84,642 bytes** against **170,342** for the incumbents it replaces — a ratio of **0.4969**.
169
173
  ## Where it sits
170
174
 
171
175
  Plugins register under the `widths` key, against the one schema the whole family shares.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linegauge",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "A printer's line gauge \u2014 the steel rule marked in picas and points. Measuring, wrapping, truncating and slicing styled terminal text without the edge fraying \u2014 grapheme-correct over Intl.Segmenter. Drop-in paths for string-width, wrap-ansi, strip-ansi and slice-ansi. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",