@tolki/str 1.0.8 → 1.0.10
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.
- package/README.md +121 -105
- package/dist/index.js +78 -77
- package/dist/str.d.ts +10 -0
- package/dist/str.d.ts.map +1 -1
- package/dist/str.js +75 -70
- package/dist/stringable/index.d.ts +6 -0
- package/dist/stringable/index.d.ts.map +1 -1
- package/dist/stringable/index.js +39 -31
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@ import { inlineMarkdown as f, markDownRenderer as h, markdown as g } from "./mar
|
|
|
5
5
|
import { inflector as U, isPlural as w, isSingular as x, matchCase as b, plural as C, pluralPascal as k, pluralStudly as y, singular as R, uncountable as z } from "./pluralizer/index.js";
|
|
6
6
|
import { randomInt as W, randomString as q } from "./random/index.js";
|
|
7
7
|
import { substr as L, substrCount as v, substrReplace as E } from "./replacer/index.js";
|
|
8
|
-
import { after as N, afterLast as P, apa as T, before as F, beforeLast as D, between as I, betweenFirst as J, camel as O, camelCacheSize as j, charAt as G, chopEnd as H, chopStart as K, contains as Q, containsAll as V, createRandomStringsNormally as X, createRandomStringsUsing as Y, createRandomStringsUsingSequence as Z, deduplicate as _, doesntContain as $, doesntEndWith as ee, doesntStartWith as re, endsWith as te, excerpt as ae, finish as se, flushCache as ie, headline as oe,
|
|
9
|
-
import { Stringable as
|
|
10
|
-
import { transliterate as
|
|
11
|
-
import { ltrim as
|
|
12
|
-
import { createUlidsNormally as
|
|
13
|
-
import { createUuidsNormally as
|
|
8
|
+
import { after as N, afterLast as P, apa as T, before as F, beforeLast as D, between as I, betweenFirst as J, camel as O, camelCacheSize as j, charAt as G, chopEnd as H, chopStart as K, contains as Q, containsAll as V, createRandomStringsNormally as X, createRandomStringsUsing as Y, createRandomStringsUsingSequence as Z, deduplicate as _, doesntContain as $, doesntEndWith as ee, doesntStartWith as re, endsWith as te, excerpt as ae, finish as se, flushCache as ie, headline as oe, initials as ne, is as le, isAscii as ce, isJson as pe, isMatch as de, isUrl as ue, kebab as me, lcfirst as fe, length as he, limit as ge, lower as Se, makePad as Ue, mask as we, match as xe, matchAll as be, numbers as Ce, padBoth as ke, padLeft as ye, padRight as Re, pascal as ze, password as Ae, position as We, random as qe, remove as Be, repeat as Le, replace as ve, replaceArray as Ee, replaceEnd as Me, replaceFirst as Ne, replaceLast as Pe, replaceMatches as Te, replaceStart as Fe, reverse as De, snake as Ie, snakeCacheSize as Je, squish as Oe, start as je, startsWith as Ge, stripTags as He, studly as Ke, studlyCacheSize as Qe, swap as Ve, take as Xe, toStringOr as Ye, ucfirst as Ze, ucsplit as _e, ucwords as $e, unwrap as er, wordCount as rr, wordWrap as tr, words as ar, wrap as sr } from "./str.js";
|
|
9
|
+
import { Stringable as or, of as nr, str as lr } from "./stringable/index.js";
|
|
10
|
+
import { transliterate as pr } from "./transliterate/index.js";
|
|
11
|
+
import { ltrim as ur, rtrim as mr, trim as fr } from "./trimmer/index.js";
|
|
12
|
+
import { createUlidsNormally as gr, createUlidsUsing as Sr, createUlidsUsingSequence as Ur, freezeUlids as wr, isUlid as xr, ulid as br } from "./ulid/index.js";
|
|
13
|
+
import { createUuidsNormally as kr, createUuidsUsing as yr, createUuidsUsingSequence as Rr, freezeUuids as zr, isUuid as Ar, uuid as Wr, uuid7 as qr } from "./uuid/index.js";
|
|
14
14
|
export {
|
|
15
15
|
c as CaseTypes,
|
|
16
|
-
|
|
16
|
+
or as Stringable,
|
|
17
17
|
N as after,
|
|
18
18
|
P as afterLast,
|
|
19
19
|
T as apa,
|
|
@@ -34,12 +34,12 @@ export {
|
|
|
34
34
|
X as createRandomStringsNormally,
|
|
35
35
|
Y as createRandomStringsUsing,
|
|
36
36
|
Z as createRandomStringsUsingSequence,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
gr as createUlidsNormally,
|
|
38
|
+
Sr as createUlidsUsing,
|
|
39
|
+
Ur as createUlidsUsingSequence,
|
|
40
|
+
kr as createUuidsNormally,
|
|
41
|
+
yr as createUuidsUsing,
|
|
42
|
+
Rr as createUuidsUsingSequence,
|
|
43
43
|
_ as deduplicate,
|
|
44
44
|
$ as doesntContain,
|
|
45
45
|
ee as doesntEndWith,
|
|
@@ -48,91 +48,92 @@ export {
|
|
|
48
48
|
ae as excerpt,
|
|
49
49
|
se as finish,
|
|
50
50
|
ie as flushCache,
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
wr as freezeUlids,
|
|
52
|
+
zr as freezeUuids,
|
|
53
53
|
o as fromBase64,
|
|
54
54
|
oe as headline,
|
|
55
55
|
U as inflector,
|
|
56
|
+
ne as initials,
|
|
56
57
|
f as inlineMarkdown,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
le as is,
|
|
59
|
+
ce as isAscii,
|
|
60
|
+
pe as isJson,
|
|
61
|
+
de as isMatch,
|
|
61
62
|
w as isPlural,
|
|
62
63
|
x as isSingular,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
xr as isUlid,
|
|
65
|
+
ue as isUrl,
|
|
66
|
+
Ar as isUuid,
|
|
67
|
+
me as kebab,
|
|
68
|
+
fe as lcfirst,
|
|
69
|
+
he as length,
|
|
70
|
+
ge as limit,
|
|
71
|
+
Se as lower,
|
|
72
|
+
ur as ltrim,
|
|
73
|
+
Ue as makePad,
|
|
73
74
|
h as markDownRenderer,
|
|
74
75
|
g as markdown,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
we as mask,
|
|
77
|
+
xe as match,
|
|
78
|
+
be as matchAll,
|
|
78
79
|
b as matchCase,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
Ce as numbers,
|
|
81
|
+
nr as of,
|
|
82
|
+
ke as padBoth,
|
|
83
|
+
ye as padLeft,
|
|
84
|
+
Re as padRight,
|
|
85
|
+
ze as pascal,
|
|
86
|
+
Ae as password,
|
|
86
87
|
C as plural,
|
|
87
88
|
k as pluralPascal,
|
|
88
89
|
y as pluralStudly,
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
We as position,
|
|
91
|
+
qe as random,
|
|
91
92
|
W as randomInt,
|
|
92
93
|
q as randomString,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
94
|
+
Be as remove,
|
|
95
|
+
Le as repeat,
|
|
96
|
+
ve as replace,
|
|
97
|
+
Ee as replaceArray,
|
|
98
|
+
Me as replaceEnd,
|
|
99
|
+
Ne as replaceFirst,
|
|
100
|
+
Pe as replaceLast,
|
|
101
|
+
Te as replaceMatches,
|
|
102
|
+
Fe as replaceStart,
|
|
103
|
+
De as reverse,
|
|
104
|
+
mr as rtrim,
|
|
104
105
|
R as singular,
|
|
105
106
|
a as slug,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
Ie as snake,
|
|
108
|
+
Je as snakeCacheSize,
|
|
109
|
+
Oe as squish,
|
|
110
|
+
je as start,
|
|
111
|
+
Ge as startsWith,
|
|
112
|
+
lr as str,
|
|
113
|
+
He as stripTags,
|
|
114
|
+
Ke as studly,
|
|
115
|
+
Qe as studlyCacheSize,
|
|
115
116
|
L as substr,
|
|
116
117
|
v as substrCount,
|
|
117
118
|
E as substrReplace,
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
Ve as swap,
|
|
120
|
+
Xe as take,
|
|
120
121
|
d as title,
|
|
121
122
|
n as toBase64,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
Ye as toStringOr,
|
|
124
|
+
pr as transliterate,
|
|
125
|
+
fr as trim,
|
|
126
|
+
Ze as ucfirst,
|
|
127
|
+
_e as ucsplit,
|
|
128
|
+
$e as ucwords,
|
|
129
|
+
br as ulid,
|
|
129
130
|
z as uncountable,
|
|
130
|
-
|
|
131
|
+
er as unwrap,
|
|
131
132
|
u as upper,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
Wr as uuid,
|
|
134
|
+
qr as uuid7,
|
|
135
|
+
rr as wordCount,
|
|
136
|
+
tr as wordWrap,
|
|
137
|
+
ar as words,
|
|
138
|
+
sr as wrap
|
|
138
139
|
};
|
package/dist/str.d.ts
CHANGED
|
@@ -617,6 +617,16 @@ export declare function start(value: string, prefix: string): string;
|
|
|
617
617
|
* @see https://tolki.abe.dev/strings/string-utilities-list.html#headline
|
|
618
618
|
*/
|
|
619
619
|
export declare function headline(value: string): string;
|
|
620
|
+
/**
|
|
621
|
+
* Get the "initials" representing each word in the provided string, optionally capitalizing.
|
|
622
|
+
*
|
|
623
|
+
* @param value - The string to extract initials from
|
|
624
|
+
* @param capitalize - Whether to capitalize the initials
|
|
625
|
+
* @returns The initials of the string
|
|
626
|
+
*
|
|
627
|
+
* @see https://tolki.abe.dev/strings/string-utilities-list.html#initials
|
|
628
|
+
*/
|
|
629
|
+
export declare function initials(value: string, capitalize?: boolean): string;
|
|
620
630
|
/**
|
|
621
631
|
* Convert the given string to APA-style title case.
|
|
622
632
|
*
|
package/dist/str.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"str.d.ts","sourceRoot":"","sources":["../src/str.ts"],"names":[],"mappings":"AA2BA;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAA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G;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAE/C;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CACnB,KAAK,EAAE,MAAM,EACb,UAAU,GAAE,MAAM,GAAG,MAAM,EAAkB,GAC9C,MAAM,CAcR;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACrB,KAAK,EAAE,MAAM,EACb,UAAU,GAAE,MAAM,GAAG,IAAW,GACjC,MAAM,CAcR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CACpB,KAAK,EAAE,MAAM,EACb,UAAU,GAAE,MAAW,EACvB,QAAQ,GAAE,MAAa,EACvB,YAAY,GAAE,OAAe,GAC9B,MAAM,CAqFR;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,IAAI,CAIjC"}
|
package/dist/str.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { isArray as x, toLower as W, isString as _, isFunction as
|
|
2
|
-
import { title as I, upper as
|
|
3
|
-
import { randomInt as O, randomString as
|
|
1
|
+
import { isArray as x, toLower as W, isString as _, isFunction as Z, isNumber as j } from "@tolki/utils";
|
|
2
|
+
import { title as I, upper as T } from "./convertcase/index.js";
|
|
3
|
+
import { randomInt as O, randomString as D } from "./random/index.js";
|
|
4
4
|
import { substr as S } from "./replacer/index.js";
|
|
5
|
-
import { ltrim as q, rtrim as G, trim as
|
|
5
|
+
import { ltrim as q, rtrim as G, trim as Q } from "./trimmer/index.js";
|
|
6
6
|
const R = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
|
|
7
7
|
let L = null;
|
|
8
|
-
function
|
|
8
|
+
function B(t, e) {
|
|
9
9
|
if (e === "")
|
|
10
10
|
return t;
|
|
11
11
|
const n = String(e), r = t.indexOf(n);
|
|
@@ -17,28 +17,28 @@ function gt(t, e) {
|
|
|
17
17
|
const n = t.lastIndexOf(String(e));
|
|
18
18
|
return n === -1 ? t : t.slice(n + String(e).length);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function V(t, e) {
|
|
21
21
|
if (e === "")
|
|
22
22
|
return t;
|
|
23
23
|
const n = t.indexOf(String(e));
|
|
24
24
|
return n === -1 ? t : t.slice(0, n);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function X(t, e) {
|
|
27
27
|
if (e === "")
|
|
28
28
|
return t;
|
|
29
29
|
const n = t.lastIndexOf(String(e));
|
|
30
30
|
return n === -1 ? t : S(t, 0, n);
|
|
31
31
|
}
|
|
32
32
|
function mt(t, e, n) {
|
|
33
|
-
return e === "" || n === "" ? t :
|
|
33
|
+
return e === "" || n === "" ? t : X(B(t, e), n);
|
|
34
34
|
}
|
|
35
35
|
function ht(t, e, n) {
|
|
36
|
-
return e === "" || n === "" ? t :
|
|
36
|
+
return e === "" || n === "" ? t : V(B(t, e), n);
|
|
37
37
|
}
|
|
38
38
|
function dt(t) {
|
|
39
39
|
if (C.has(t))
|
|
40
40
|
return C.get(t);
|
|
41
|
-
const e = st(
|
|
41
|
+
const e = st(K(t));
|
|
42
42
|
return C.set(t, e), e;
|
|
43
43
|
}
|
|
44
44
|
function yt(t, e) {
|
|
@@ -61,7 +61,7 @@ function xt(t, e) {
|
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function H(t, e, n = !1) {
|
|
65
65
|
n && (t = t.toLowerCase());
|
|
66
66
|
let r;
|
|
67
67
|
typeof e == "string" ? r = [e] : r = Array.from(e);
|
|
@@ -83,12 +83,12 @@ function St(t, e = "", n = {}) {
|
|
|
83
83
|
}
|
|
84
84
|
function $t(t, e, n = !1) {
|
|
85
85
|
for (const r of e)
|
|
86
|
-
if (!
|
|
86
|
+
if (!H(t, r, n))
|
|
87
87
|
return !1;
|
|
88
88
|
return !0;
|
|
89
89
|
}
|
|
90
90
|
function kt(t, e, n = !1) {
|
|
91
|
-
return !
|
|
91
|
+
return !H(t, e, n);
|
|
92
92
|
}
|
|
93
93
|
function At(t, e = " ") {
|
|
94
94
|
return x(e) ? (e.forEach((n) => {
|
|
@@ -192,7 +192,7 @@ function Ot(t, e = 100, n = "...", r = !1) {
|
|
|
192
192
|
const s = t.slice(0, e).replace(/\s+$/, "");
|
|
193
193
|
return t.substring(e, e + 1) === " " ? s + n : s.replace(/(.*)\s.*/, "$1") + n;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function J(t) {
|
|
196
196
|
return W(t);
|
|
197
197
|
}
|
|
198
198
|
function Wt(t, e = 100, n = "...") {
|
|
@@ -468,8 +468,8 @@ function Jt(t, e, n = 0) {
|
|
|
468
468
|
}
|
|
469
469
|
return !1;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
return (L ?? ((n) =>
|
|
471
|
+
function Y(t = 16) {
|
|
472
|
+
return (L ?? ((n) => D(n)))(t);
|
|
473
473
|
}
|
|
474
474
|
function v(t) {
|
|
475
475
|
L = t;
|
|
@@ -479,7 +479,7 @@ function Kt(t, e) {
|
|
|
479
479
|
const r = e ?? function(s) {
|
|
480
480
|
const o = L;
|
|
481
481
|
L = null;
|
|
482
|
-
const c =
|
|
482
|
+
const c = Y(s);
|
|
483
483
|
return L = o, n++, c;
|
|
484
484
|
};
|
|
485
485
|
v((s) => n < t.length ? String(t[n++]) : r(s));
|
|
@@ -487,10 +487,10 @@ function Kt(t, e) {
|
|
|
487
487
|
function Zt() {
|
|
488
488
|
L = null;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function jt(t, e) {
|
|
491
491
|
return e <= 0 ? "" : t.repeat(e);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function Dt(t, e, n) {
|
|
494
494
|
let r;
|
|
495
495
|
typeof e == "object" && !x(e) ? r = Object.values(e) : r = x(e) ? [...e] : Array.from(e);
|
|
496
496
|
const s = n.split(t);
|
|
@@ -503,7 +503,7 @@ function Qt(t, e, n) {
|
|
|
503
503
|
}
|
|
504
504
|
return String(o);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Qt(t, e) {
|
|
507
507
|
try {
|
|
508
508
|
const n = String(t);
|
|
509
509
|
if (n.length)
|
|
@@ -513,7 +513,7 @@ function Vt(t, e) {
|
|
|
513
513
|
return e;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Vt(t, e, n, r = !0) {
|
|
517
517
|
const s = (l) => typeof l == "string" ? [l] : Array.from(l), o = s(t), c = s(e), i = (l) => l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), f = (l) => o.reduce((p, a, g) => {
|
|
518
518
|
if (a === "") return p;
|
|
519
519
|
const u = c[g] ?? "";
|
|
@@ -530,7 +530,7 @@ function tt(t, e, n) {
|
|
|
530
530
|
const r = n.indexOf(t);
|
|
531
531
|
return r !== -1 ? n.slice(0, r) + e + n.slice(r + t.length) : n;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Xt(t, e, n) {
|
|
534
534
|
return t = String(t), t === "" ? n : U(n, t) ? tt(t, e, n) : n;
|
|
535
535
|
}
|
|
536
536
|
function et(t, e, n) {
|
|
@@ -539,7 +539,7 @@ function et(t, e, n) {
|
|
|
539
539
|
const r = n.lastIndexOf(t);
|
|
540
540
|
return r !== -1 ? n.slice(0, r) + e + n.slice(r + t.length) : n;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Yt(t, e, n) {
|
|
543
543
|
return t = String(t), t === "" ? n : M(n, t) ? et(t, e, n) : n;
|
|
544
544
|
}
|
|
545
545
|
function vt(t, e, n, r = -1) {
|
|
@@ -585,7 +585,7 @@ function vt(t, e, n, r = -1) {
|
|
|
585
585
|
if (!g) return null;
|
|
586
586
|
i.push(g);
|
|
587
587
|
}
|
|
588
|
-
const f =
|
|
588
|
+
const f = Z(e), l = f ? [] : s(e), p = (a) => {
|
|
589
589
|
let g = a;
|
|
590
590
|
for (let u = 0; u < i.length; u++) {
|
|
591
591
|
const m = i[u];
|
|
@@ -669,7 +669,11 @@ function re(t) {
|
|
|
669
669
|
let n = e.split(/\s+/u);
|
|
670
670
|
return n.length > 1 ? n = n.map((s) => I(s)) : n = ot(n.join("_")).map((s) => I(s)), n.join("_").replace(/[-_ ]+/gu, "_").split("_").filter((s) => s.length > 0).join(" ");
|
|
671
671
|
}
|
|
672
|
-
function se(t) {
|
|
672
|
+
function se(t, e = !1) {
|
|
673
|
+
const r = t.split(/\s+/u).filter((s) => s.length > 0).map((s) => [...s][0]).join("");
|
|
674
|
+
return e ? T(r) : r;
|
|
675
|
+
}
|
|
676
|
+
function oe(t) {
|
|
673
677
|
if (t.trim() === "")
|
|
674
678
|
return t;
|
|
675
679
|
const e = /* @__PURE__ */ new Set([
|
|
@@ -730,16 +734,16 @@ function rt(t, e = "_") {
|
|
|
730
734
|
if (R.has(r))
|
|
731
735
|
return R.get(r);
|
|
732
736
|
let s = t;
|
|
733
|
-
return /^[a-z]+$/.test(t) || (s = it(t).replace(/\s+/gu, ""), s = s.replace(/(.)(?=[A-Z])/g, `$1${e}`), s =
|
|
737
|
+
return /^[a-z]+$/.test(t) || (s = it(t).replace(/\s+/gu, ""), s = s.replace(/(.)(?=[A-Z])/g, `$1${e}`), s = J(s)), R.set(r, s), s;
|
|
734
738
|
}
|
|
735
|
-
function
|
|
736
|
-
return
|
|
739
|
+
function ie(t) {
|
|
740
|
+
return Q(t).replace(/[\s\u3164\u1160]+/gu, " ");
|
|
737
741
|
}
|
|
738
742
|
function U(t, e) {
|
|
739
743
|
if (t == null || e == null)
|
|
740
744
|
return !1;
|
|
741
745
|
let n;
|
|
742
|
-
_(e) ||
|
|
746
|
+
_(e) || j(e) ? n = [e] : Symbol.iterator in Object(e) ? n = Array.from(e) : n = [e];
|
|
743
747
|
const r = String(t);
|
|
744
748
|
for (const s of n) {
|
|
745
749
|
if (s == null)
|
|
@@ -750,10 +754,10 @@ function U(t, e) {
|
|
|
750
754
|
}
|
|
751
755
|
return !1;
|
|
752
756
|
}
|
|
753
|
-
function
|
|
757
|
+
function ce(t, e) {
|
|
754
758
|
return !U(t, e);
|
|
755
759
|
}
|
|
756
|
-
function
|
|
760
|
+
function K(t) {
|
|
757
761
|
const e = t;
|
|
758
762
|
if (F.has(e))
|
|
759
763
|
return F.get(e);
|
|
@@ -764,10 +768,10 @@ function J(t) {
|
|
|
764
768
|
}, o = r.map(s).join("");
|
|
765
769
|
return F.set(e, o), o;
|
|
766
770
|
}
|
|
767
|
-
function
|
|
768
|
-
return
|
|
771
|
+
function le(t) {
|
|
772
|
+
return K(t);
|
|
769
773
|
}
|
|
770
|
-
function
|
|
774
|
+
function fe(t, e) {
|
|
771
775
|
if (!t || Object.keys(t).length === 0)
|
|
772
776
|
return e;
|
|
773
777
|
const n = Object.keys(t).filter((o) => o !== "");
|
|
@@ -777,14 +781,14 @@ function le(t, e) {
|
|
|
777
781
|
const r = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = new RegExp(n.map(r).join("|"), "gu");
|
|
778
782
|
return e.replace(s, (o) => t[o]);
|
|
779
783
|
}
|
|
780
|
-
function
|
|
784
|
+
function ae(t, e) {
|
|
781
785
|
return e < 0 ? S(t, e) : S(t, 0, e);
|
|
782
786
|
}
|
|
783
787
|
function st(t) {
|
|
784
|
-
return
|
|
788
|
+
return J(S(t, 0, 1)) + S(t, 1);
|
|
785
789
|
}
|
|
786
|
-
function
|
|
787
|
-
return
|
|
790
|
+
function ue(t) {
|
|
791
|
+
return T(S(t, 0, 1)) + S(t, 1);
|
|
788
792
|
}
|
|
789
793
|
function ot(t) {
|
|
790
794
|
return t.split(new RegExp("(?=\\p{Lu})", "u")).filter(Boolean);
|
|
@@ -794,11 +798,11 @@ function it(t, e = ` \r
|
|
|
794
798
|
const n = x(e) ? e.join("") : e, r = (i) => i.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"), s = n.length ? r(n) : "", o = s.length ? `(?:\\s|[${s}])` : "\\s", c = new RegExp(`(^|${o})(\\p{Ll})`, "gu");
|
|
795
799
|
return t.replace(c, (i, f, l) => f + l.toUpperCase());
|
|
796
800
|
}
|
|
797
|
-
function
|
|
801
|
+
function pe(t, e = null) {
|
|
798
802
|
const n = e && e.length > 0 ? e.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&") : "", r = n.length > 0 ? new RegExp(`[\\p{L}\\p{N}${n}]+`, "gu") : /[\p{L}\p{N}]+/gu, s = t.match(r);
|
|
799
803
|
return s ? s.length : 0;
|
|
800
804
|
}
|
|
801
|
-
function
|
|
805
|
+
function ge(t, e = 75, n = `
|
|
802
806
|
`, r = !1) {
|
|
803
807
|
if (t.length === 0 || e < 1 || n === "")
|
|
804
808
|
return t;
|
|
@@ -847,32 +851,32 @@ function pe(t, e = 75, n = `
|
|
|
847
851
|
}
|
|
848
852
|
return o.join(n);
|
|
849
853
|
}
|
|
850
|
-
function
|
|
854
|
+
function me() {
|
|
851
855
|
return R.size;
|
|
852
856
|
}
|
|
853
|
-
function
|
|
857
|
+
function he() {
|
|
854
858
|
return C.size;
|
|
855
859
|
}
|
|
856
|
-
function
|
|
860
|
+
function de() {
|
|
857
861
|
return F.size;
|
|
858
862
|
}
|
|
859
|
-
function
|
|
863
|
+
function ye() {
|
|
860
864
|
R.clear(), C.clear(), F.clear();
|
|
861
865
|
}
|
|
862
866
|
export {
|
|
863
|
-
|
|
867
|
+
B as after,
|
|
864
868
|
gt as afterLast,
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
869
|
+
oe as apa,
|
|
870
|
+
V as before,
|
|
871
|
+
X as beforeLast,
|
|
868
872
|
mt as between,
|
|
869
873
|
ht as betweenFirst,
|
|
870
874
|
dt as camel,
|
|
871
|
-
|
|
875
|
+
he as camelCacheSize,
|
|
872
876
|
yt as charAt,
|
|
873
877
|
xt as chopEnd,
|
|
874
878
|
wt as chopStart,
|
|
875
|
-
|
|
879
|
+
H as contains,
|
|
876
880
|
$t as containsAll,
|
|
877
881
|
Zt as createRandomStringsNormally,
|
|
878
882
|
v as createRandomStringsUsing,
|
|
@@ -880,12 +884,13 @@ export {
|
|
|
880
884
|
At as deduplicate,
|
|
881
885
|
kt as doesntContain,
|
|
882
886
|
bt as doesntEndWith,
|
|
883
|
-
|
|
887
|
+
ce as doesntStartWith,
|
|
884
888
|
M as endsWith,
|
|
885
889
|
St as excerpt,
|
|
886
890
|
Et as finish,
|
|
887
|
-
|
|
891
|
+
ye as flushCache,
|
|
888
892
|
re as headline,
|
|
893
|
+
se as initials,
|
|
889
894
|
Ct as is,
|
|
890
895
|
Ft as isAscii,
|
|
891
896
|
zt as isJson,
|
|
@@ -895,7 +900,7 @@ export {
|
|
|
895
900
|
st as lcfirst,
|
|
896
901
|
z as length,
|
|
897
902
|
Ot as limit,
|
|
898
|
-
|
|
903
|
+
J as lower,
|
|
899
904
|
N as makePad,
|
|
900
905
|
Mt as mask,
|
|
901
906
|
Ut as match,
|
|
@@ -904,37 +909,37 @@ export {
|
|
|
904
909
|
Gt as padBoth,
|
|
905
910
|
Tt as padLeft,
|
|
906
911
|
Bt as padRight,
|
|
907
|
-
|
|
912
|
+
le as pascal,
|
|
908
913
|
Ht as password,
|
|
909
914
|
Jt as position,
|
|
910
|
-
|
|
915
|
+
Y as random,
|
|
911
916
|
te as remove,
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
917
|
+
jt as repeat,
|
|
918
|
+
Vt as replace,
|
|
919
|
+
Dt as replaceArray,
|
|
920
|
+
Yt as replaceEnd,
|
|
916
921
|
tt as replaceFirst,
|
|
917
922
|
et as replaceLast,
|
|
918
923
|
vt as replaceMatches,
|
|
919
|
-
|
|
924
|
+
Xt as replaceStart,
|
|
920
925
|
ee as reverse,
|
|
921
926
|
rt as snake,
|
|
922
|
-
|
|
923
|
-
|
|
927
|
+
me as snakeCacheSize,
|
|
928
|
+
ie as squish,
|
|
924
929
|
ne as start,
|
|
925
930
|
U as startsWith,
|
|
926
931
|
nt as stripTags,
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
932
|
+
K as studly,
|
|
933
|
+
de as studlyCacheSize,
|
|
934
|
+
fe as swap,
|
|
935
|
+
ae as take,
|
|
936
|
+
Qt as toStringOr,
|
|
937
|
+
ue as ucfirst,
|
|
933
938
|
ot as ucsplit,
|
|
934
939
|
it as ucwords,
|
|
935
940
|
Rt as unwrap,
|
|
936
|
-
|
|
937
|
-
|
|
941
|
+
pe as wordCount,
|
|
942
|
+
ge as wordWrap,
|
|
938
943
|
Wt as words,
|
|
939
944
|
Lt as wrap
|
|
940
945
|
};
|
|
@@ -546,6 +546,12 @@ export declare class Stringable {
|
|
|
546
546
|
* @returns The headline-cased string as a new Stringable instance.
|
|
547
547
|
*/
|
|
548
548
|
headline(): Stringable;
|
|
549
|
+
/**
|
|
550
|
+
* Convert the given string to only its initials.
|
|
551
|
+
*
|
|
552
|
+
* @returns The initials of the string as a new Stringable instance.
|
|
553
|
+
*/
|
|
554
|
+
initials(): Stringable;
|
|
549
555
|
/**
|
|
550
556
|
* Convert the given string to APA-style title case.
|
|
551
557
|
*
|