@thi.ng/strings 3.9.22 → 3.9.26

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/package.json +214 -214
  2. package/CHANGELOG.md +0 -122
package/package.json CHANGED
@@ -1,215 +1,215 @@
1
1
  {
2
- "name": "@thi.ng/strings",
3
- "version": "3.9.22",
4
- "description": "Various string formatting & utility functions",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/format",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/api": "^8.12.2",
43
- "@thi.ng/errors": "^2.5.42",
44
- "@thi.ng/hex": "^2.3.80",
45
- "@thi.ng/memoize": "^4.0.26"
46
- },
47
- "devDependencies": {
48
- "esbuild": "^0.25.9",
49
- "typedoc": "^0.28.12",
50
- "typescript": "^5.9.2"
51
- },
52
- "keywords": [
53
- "ansi",
54
- "composition",
55
- "conversion",
56
- "cursor",
57
- "escape",
58
- "float",
59
- "format",
60
- "functional",
61
- "hex",
62
- "hollerith",
63
- "interpolation",
64
- "number",
65
- "padding",
66
- "percent",
67
- "radix",
68
- "slugify",
69
- "split",
70
- "string",
71
- "tab",
72
- "text",
73
- "trim",
74
- "typescript",
75
- "unicode",
76
- "utf8",
77
- "wordwrap"
78
- ],
79
- "publishConfig": {
80
- "access": "public"
81
- },
82
- "engines": {
83
- "node": ">=18"
84
- },
85
- "files": [
86
- "./*.js",
87
- "./*.d.ts"
88
- ],
89
- "exports": {
90
- ".": {
91
- "default": "./index.js"
92
- },
93
- "./ansi": {
94
- "default": "./ansi.js"
95
- },
96
- "./api": {
97
- "default": "./api.js"
98
- },
99
- "./case": {
100
- "default": "./case.js"
101
- },
102
- "./center": {
103
- "default": "./center.js"
104
- },
105
- "./currency": {
106
- "default": "./currency.js"
107
- },
108
- "./cursor": {
109
- "default": "./cursor.js"
110
- },
111
- "./entities": {
112
- "default": "./entities.js"
113
- },
114
- "./escape": {
115
- "default": "./escape.js"
116
- },
117
- "./float": {
118
- "default": "./float.js"
119
- },
120
- "./format": {
121
- "default": "./format.js"
122
- },
123
- "./groups": {
124
- "default": "./groups.js"
125
- },
126
- "./hollerith": {
127
- "default": "./hollerith.js"
128
- },
129
- "./initials": {
130
- "default": "./initials.js"
131
- },
132
- "./int": {
133
- "default": "./int.js"
134
- },
135
- "./interpolate": {
136
- "default": "./interpolate.js"
137
- },
138
- "./join": {
139
- "default": "./join.js"
140
- },
141
- "./named-number": {
142
- "default": "./named-number.js"
143
- },
144
- "./pad-left": {
145
- "default": "./pad-left.js"
146
- },
147
- "./pad-right": {
148
- "default": "./pad-right.js"
149
- },
150
- "./parse": {
151
- "default": "./parse.js"
152
- },
153
- "./percent": {
154
- "default": "./percent.js"
155
- },
156
- "./radix": {
157
- "default": "./radix.js"
158
- },
159
- "./range": {
160
- "default": "./range.js"
161
- },
162
- "./repeat": {
163
- "default": "./repeat.js"
164
- },
165
- "./ruler": {
166
- "default": "./ruler.js"
167
- },
168
- "./slugify": {
169
- "default": "./slugify.js"
170
- },
171
- "./splice": {
172
- "default": "./splice.js"
173
- },
174
- "./split": {
175
- "default": "./split.js"
176
- },
177
- "./stringify": {
178
- "default": "./stringify.js"
179
- },
180
- "./tabs": {
181
- "default": "./tabs.js"
182
- },
183
- "./trim": {
184
- "default": "./trim.js"
185
- },
186
- "./truncate-left": {
187
- "default": "./truncate-left.js"
188
- },
189
- "./truncate": {
190
- "default": "./truncate.js"
191
- },
192
- "./units": {
193
- "default": "./units.js"
194
- },
195
- "./utf8": {
196
- "default": "./utf8.js"
197
- },
198
- "./uuid": {
199
- "default": "./uuid.js"
200
- },
201
- "./vector": {
202
- "default": "./vector.js"
203
- },
204
- "./word-wrap": {
205
- "default": "./word-wrap.js"
206
- },
207
- "./wrap": {
208
- "default": "./wrap.js"
209
- }
210
- },
211
- "thi.ng": {
212
- "year": 2015
213
- },
214
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
215
- }
2
+ "name": "@thi.ng/strings",
3
+ "version": "3.9.26",
4
+ "description": "Various string formatting & utility functions",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/format",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/api": "^8.12.6",
43
+ "@thi.ng/errors": "^2.5.46",
44
+ "@thi.ng/hex": "^2.3.84",
45
+ "@thi.ng/memoize": "^4.0.30"
46
+ },
47
+ "devDependencies": {
48
+ "esbuild": "^0.25.11",
49
+ "typedoc": "^0.28.14",
50
+ "typescript": "^5.9.3"
51
+ },
52
+ "keywords": [
53
+ "ansi",
54
+ "composition",
55
+ "conversion",
56
+ "cursor",
57
+ "escape",
58
+ "float",
59
+ "format",
60
+ "functional",
61
+ "hex",
62
+ "hollerith",
63
+ "interpolation",
64
+ "number",
65
+ "padding",
66
+ "percent",
67
+ "radix",
68
+ "slugify",
69
+ "split",
70
+ "string",
71
+ "tab",
72
+ "text",
73
+ "trim",
74
+ "typescript",
75
+ "unicode",
76
+ "utf8",
77
+ "wordwrap"
78
+ ],
79
+ "publishConfig": {
80
+ "access": "public"
81
+ },
82
+ "engines": {
83
+ "node": ">=18"
84
+ },
85
+ "files": [
86
+ "./*.js",
87
+ "./*.d.ts"
88
+ ],
89
+ "exports": {
90
+ ".": {
91
+ "default": "./index.js"
92
+ },
93
+ "./ansi": {
94
+ "default": "./ansi.js"
95
+ },
96
+ "./api": {
97
+ "default": "./api.js"
98
+ },
99
+ "./case": {
100
+ "default": "./case.js"
101
+ },
102
+ "./center": {
103
+ "default": "./center.js"
104
+ },
105
+ "./currency": {
106
+ "default": "./currency.js"
107
+ },
108
+ "./cursor": {
109
+ "default": "./cursor.js"
110
+ },
111
+ "./entities": {
112
+ "default": "./entities.js"
113
+ },
114
+ "./escape": {
115
+ "default": "./escape.js"
116
+ },
117
+ "./float": {
118
+ "default": "./float.js"
119
+ },
120
+ "./format": {
121
+ "default": "./format.js"
122
+ },
123
+ "./groups": {
124
+ "default": "./groups.js"
125
+ },
126
+ "./hollerith": {
127
+ "default": "./hollerith.js"
128
+ },
129
+ "./initials": {
130
+ "default": "./initials.js"
131
+ },
132
+ "./int": {
133
+ "default": "./int.js"
134
+ },
135
+ "./interpolate": {
136
+ "default": "./interpolate.js"
137
+ },
138
+ "./join": {
139
+ "default": "./join.js"
140
+ },
141
+ "./named-number": {
142
+ "default": "./named-number.js"
143
+ },
144
+ "./pad-left": {
145
+ "default": "./pad-left.js"
146
+ },
147
+ "./pad-right": {
148
+ "default": "./pad-right.js"
149
+ },
150
+ "./parse": {
151
+ "default": "./parse.js"
152
+ },
153
+ "./percent": {
154
+ "default": "./percent.js"
155
+ },
156
+ "./radix": {
157
+ "default": "./radix.js"
158
+ },
159
+ "./range": {
160
+ "default": "./range.js"
161
+ },
162
+ "./repeat": {
163
+ "default": "./repeat.js"
164
+ },
165
+ "./ruler": {
166
+ "default": "./ruler.js"
167
+ },
168
+ "./slugify": {
169
+ "default": "./slugify.js"
170
+ },
171
+ "./splice": {
172
+ "default": "./splice.js"
173
+ },
174
+ "./split": {
175
+ "default": "./split.js"
176
+ },
177
+ "./stringify": {
178
+ "default": "./stringify.js"
179
+ },
180
+ "./tabs": {
181
+ "default": "./tabs.js"
182
+ },
183
+ "./trim": {
184
+ "default": "./trim.js"
185
+ },
186
+ "./truncate-left": {
187
+ "default": "./truncate-left.js"
188
+ },
189
+ "./truncate": {
190
+ "default": "./truncate.js"
191
+ },
192
+ "./units": {
193
+ "default": "./units.js"
194
+ },
195
+ "./utf8": {
196
+ "default": "./utf8.js"
197
+ },
198
+ "./uuid": {
199
+ "default": "./uuid.js"
200
+ },
201
+ "./vector": {
202
+ "default": "./vector.js"
203
+ },
204
+ "./word-wrap": {
205
+ "default": "./word-wrap.js"
206
+ },
207
+ "./wrap": {
208
+ "default": "./wrap.js"
209
+ }
210
+ },
211
+ "thi.ng": {
212
+ "year": 2015
213
+ },
214
+ "gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
215
+ }
package/CHANGELOG.md DELETED
@@ -1,122 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ## [3.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.9.0) (2025-01-04)
15
-
16
- #### 🚀 Features
17
-
18
- - add `pascal()` case conversion ([2c3f4f4](https://github.com/thi-ng/umbrella/commit/2c3f4f4))
19
-
20
- ### [3.8.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.8.7) (2024-10-31)
21
-
22
- #### ♻️ Refactoring
23
-
24
- - update memoizations ([7c3ca44](https://github.com/thi-ng/umbrella/commit/7c3ca44))
25
-
26
- ## [3.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.8.0) (2024-07-19)
27
-
28
- #### 🚀 Features
29
-
30
- - add namedNumber() ([979ad33](https://github.com/thi-ng/umbrella/commit/979ad33))
31
-
32
- ### [3.7.34](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.7.34) (2024-06-21)
33
-
34
- #### ♻️ Refactoring
35
-
36
- - rename various rest args to be more semantically meaningful ([8088a56](https://github.com/thi-ng/umbrella/commit/8088a56))
37
- - enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
38
-
39
- ### [3.7.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.7.31) (2024-04-20)
40
-
41
- #### ♻️ Refactoring
42
-
43
- - update type usage ([4664361](https://github.com/thi-ng/umbrella/commit/4664361))
44
-
45
- ### [3.7.28](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.7.28) (2024-03-27)
46
-
47
- #### ♻️ Refactoring
48
-
49
- - update memoizations ([d7b188d](https://github.com/thi-ng/umbrella/commit/d7b188d))
50
-
51
- ### [3.7.27](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.7.27) (2024-03-22)
52
-
53
- #### 🩹 Bug fixes
54
-
55
- - fix unintentional, IDE-induced Unicode encoding issue ([a54a69b](https://github.com/thi-ng/umbrella/commit/a54a69b))
56
- - use unicode Kelvin sign as `\u212a` to avoid/fix bug in `encodeEntitiesNum()`
57
- - potential culprits for this issue: VSCode or Prettier
58
- - add tests
59
-
60
- ### [3.7.25](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.7.25) (2024-03-18)
61
-
62
- #### ♻️ Refactoring
63
-
64
- - minor update slugify()/slugifyGH() regexps ([03b77d1](https://github.com/thi-ng/umbrella/commit/03b77d1))
65
-
66
- ### [3.7.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.7.4) (2023-12-18)
67
-
68
- #### 🩹 Bug fixes
69
-
70
- - improve split() regexp handling ([65fe14b](https://github.com/thi-ng/umbrella/commit/65fe14b))
71
- - ensure given regexp has global flag enabled
72
-
73
- ## [3.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.7.0) (2023-11-24)
74
-
75
- #### 🚀 Features
76
-
77
- - add/migrate utf8 encode/decode/length fns ([a8955f2](https://github.com/thi-ng/umbrella/commit/a8955f2))
78
- - migrate & update from [@thi.ng/transducers-binary](https://github.com/thi-ng/umbrella/tree/main/packages/transducers-binary)
79
-
80
- ### [3.6.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.6.5) (2023-11-09)
81
-
82
- #### ♻️ Refactoring
83
-
84
- - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
85
-
86
- ## [3.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.6.0) (2023-09-19)
87
-
88
- #### 🚀 Features
89
-
90
- - add escapeEntitiesNum() ([f921491](https://github.com/thi-ng/umbrella/commit/f921491))
91
-
92
- ## [3.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.5.0) (2023-09-15)
93
-
94
- #### 🚀 Features
95
-
96
- - add more HTML entities ([9fa5d91](https://github.com/thi-ng/umbrella/commit/9fa5d91))
97
- - add support for numeric HTML entities ([8d942ba](https://github.com/thi-ng/umbrella/commit/8d942ba))
98
- - add `RE_ENTITIES_NUM`
99
- - update unescapeEntities() to also support numeric entities
100
- - add unitless() formatter ([d5025ce](https://github.com/thi-ng/umbrella/commit/d5025ce))
101
-
102
- ### [3.4.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.4.12) (2023-08-22)
103
-
104
- #### 🩹 Bug fixes
105
-
106
- - empty string check for capitalize() ([f2dcee5](https://github.com/thi-ng/umbrella/commit/f2dcee5))
107
-
108
- ## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.4.0) (2023-02-27)
109
-
110
- #### 🚀 Features
111
-
112
- - add more HTML entities ([d617132](https://github.com/thi-ng/umbrella/commit/d617132))
113
-
114
- #### 🩹 Bug fixes
115
-
116
- - add emoji ranges for slugify/slugifyGH() ([f5cb210](https://github.com/thi-ng/umbrella/commit/f5cb210))
117
-
118
- ### [3.3.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/strings@3.3.3) (2022-04-07)
119
-
120
- #### ♻️ Refactoring
121
-
122
- - replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))