@tolki/str 1.0.14 → 1.2.0
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 +31 -1
- package/dist/index.js +125 -124
- package/dist/pluralizer/index.d.ts +13 -1
- package/dist/pluralizer/index.d.ts.map +1 -1
- package/dist/pluralizer/index.js +44 -39
- package/dist/str.d.ts +4 -2
- package/dist/str.d.ts.map +1 -1
- package/dist/str.js +107 -102
- package/dist/stringable/index.d.ts +13 -4
- package/dist/stringable/index.d.ts.map +1 -1
- package/dist/stringable/index.js +103 -92
- package/package.json +3 -3
package/dist/str.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isArray as S, toLower as U, isString as
|
|
1
|
+
import { isArray as S, toLower as U, isString as z, isFunction as K, isNumber as j } from "@tolki/utils";
|
|
2
2
|
import { title as I, upper as T } from "./convertcase/index.js";
|
|
3
3
|
import { randomInt as O, randomString as D } from "./random/index.js";
|
|
4
4
|
import { substr as x } from "./replacer/index.js";
|
|
@@ -6,7 +6,7 @@ import { ltrim as q, rtrim as G, trim as Q } from "./trimmer/index.js";
|
|
|
6
6
|
import { createUlidsNormally as V } from "./ulid/index.js";
|
|
7
7
|
import { createUuidsNormally as X } from "./uuid/index.js";
|
|
8
8
|
const R = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
|
|
9
|
-
let
|
|
9
|
+
let E = null;
|
|
10
10
|
function B(t, e) {
|
|
11
11
|
if (e === "")
|
|
12
12
|
return t;
|
|
@@ -40,14 +40,14 @@ function xt(t, e, n) {
|
|
|
40
40
|
function $t(t) {
|
|
41
41
|
if (C.has(t))
|
|
42
42
|
return C.get(t);
|
|
43
|
-
const e = ct(
|
|
43
|
+
const e = ct(Z(t));
|
|
44
44
|
return C.set(t, e), e;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function At(t, e) {
|
|
47
47
|
const n = t.length;
|
|
48
48
|
return (e < 0 ? e < -n : e > n - 1) ? !1 : (e < 0 && (e += n), t.charAt(e));
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function kt(t, e) {
|
|
51
51
|
for (const n of S(e) ? e : [e])
|
|
52
52
|
if (n !== "" && t.startsWith(n)) {
|
|
53
53
|
const r = [...t], s = [...n];
|
|
@@ -72,18 +72,18 @@ function H(t, e, n = !1) {
|
|
|
72
72
|
return !0;
|
|
73
73
|
return !1;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Lt(t, e = "", n = {}) {
|
|
76
76
|
const { radius: r = 100, omission: s = "..." } = n, o = String(t ?? ""), c = e ?? "", i = ($) => $.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), l = new RegExp(`^(.*?)(${i(c)})(.*)$`, "iu").exec(o);
|
|
77
77
|
if (!l)
|
|
78
78
|
return null;
|
|
79
|
-
const
|
|
79
|
+
const u = String(l[1]), a = String(l[2]), g = String(l[3]), p = q(u), m = Array.from(p).length, y = x(p, Math.max(m - r, 0), r);
|
|
80
80
|
let w = q(y);
|
|
81
|
-
w !==
|
|
81
|
+
w !== p && (w = s + w);
|
|
82
82
|
const h = G(g), d = x(h, 0, r);
|
|
83
|
-
let
|
|
84
|
-
return
|
|
83
|
+
let A = G(d);
|
|
84
|
+
return A !== h && (A = A + s), w + a + A;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Et(t, e, n = !1) {
|
|
87
87
|
for (const r of e)
|
|
88
88
|
if (!H(t, r, n))
|
|
89
89
|
return !1;
|
|
@@ -109,15 +109,15 @@ function W(t, e) {
|
|
|
109
109
|
function Ft(t, e) {
|
|
110
110
|
return !W(t, e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function _t(t, e) {
|
|
113
113
|
const n = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
114
114
|
return t.replace(new RegExp(`(?:${n})+$`, "u"), "") + e;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Nt(t, e, n = null) {
|
|
117
117
|
return e + t + (n ?? e);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return M(t, e) && (t = x(t,
|
|
119
|
+
function zt(t, e, n = null) {
|
|
120
|
+
return M(t, e) && (t = x(t, _(e))), W(t, n ??= e) && (t = x(t, 0, -_(n))), t;
|
|
121
121
|
}
|
|
122
122
|
function Ot(t, e, n = !1) {
|
|
123
123
|
e = String(e);
|
|
@@ -140,7 +140,7 @@ function Ut(t) {
|
|
|
140
140
|
return !0;
|
|
141
141
|
}
|
|
142
142
|
function Wt(t) {
|
|
143
|
-
if (!
|
|
143
|
+
if (!z(t))
|
|
144
144
|
return !1;
|
|
145
145
|
try {
|
|
146
146
|
JSON.parse(t);
|
|
@@ -150,12 +150,12 @@ function Wt(t) {
|
|
|
150
150
|
return !0;
|
|
151
151
|
}
|
|
152
152
|
function Mt(t, e = []) {
|
|
153
|
-
if (!
|
|
153
|
+
if (!z(t))
|
|
154
154
|
return !1;
|
|
155
155
|
const r = (e.length === 0 ? "aaa|aaas|about|acap|acct|acd|acr|adiumxtra|adt|afp|afs|aim|amss|android|appdata|apt|ark|attachment|aw|barion|beshare|bitcoin|bitcoincash|blob|bolo|browserext|calculator|callto|cap|cast|casts|chrome|chrome-extension|cid|coap|coap+tcp|coap+ws|coaps|coaps+tcp|coaps+ws|com-eventbrite-attendee|content|conti|crid|cvs|dab|data|dav|diaspora|dict|did|dis|dlna-playcontainer|dlna-playsingle|dns|dntp|dpp|drm|drop|dtn|dvb|ed2k|elsi|example|facetime|fax|feed|feedready|file|filesystem|finger|first-run-pen-experience|fish|fm|ftp|fuchsia-pkg|geo|gg|git|gizmoproject|go|gopher|graph|gtalk|h323|ham|hcap|hcp|http|https|hxxp|hxxps|hydrazone|iax|icap|icon|im|imap|info|iotdisco|ipn|ipp|ipps|irc|irc6|ircs|iris|iris.beep|iris.lwz|iris.xpc|iris.xpcs|isostore|itms|jabber|jar|jms|keyparc|lastfm|ldap|ldaps|leaptofrogans|lorawan|lvlt|magnet|mailserver|mailto|maps|market|message|mid|mms|modem|mongodb|moz|ms-access|ms-browser-extension|ms-calculator|ms-drive-to|ms-enrollment|ms-excel|ms-eyecontrolspeech|ms-gamebarservices|ms-gamingoverlay|ms-getoffice|ms-help|ms-infopath|ms-inputapp|ms-lockscreencomponent-config|ms-media-stream-id|ms-mixedrealitycapture|ms-mobileplans|ms-officeapp|ms-people|ms-project|ms-powerpoint|ms-publisher|ms-restoretabcompanion|ms-screenclip|ms-screensketch|ms-search|ms-search-repair|ms-secondary-screen-controller|ms-secondary-screen-setup|ms-settings|ms-settings-airplanemode|ms-settings-bluetooth|ms-settings-camera|ms-settings-cellular|ms-settings-cloudstorage|ms-settings-connectabledevices|ms-settings-displays-topology|ms-settings-emailandaccounts|ms-settings-language|ms-settings-location|ms-settings-lock|ms-settings-nfctransactions|ms-settings-notifications|ms-settings-power|ms-settings-privacy|ms-settings-proximity|ms-settings-screenrotation|ms-settings-wifi|ms-settings-workplace|ms-spd|ms-sttoverlay|ms-transit-to|ms-useractivityset|ms-virtualtouchpad|ms-visio|ms-walk-to|ms-whiteboard|ms-whiteboard-cmd|ms-word|msnim|msrp|msrps|mss|mtqp|mumble|mupdate|mvn|news|nfs|ni|nih|nntp|notes|ocf|oid|onenote|onenote-cmd|opaquelocktoken|openpgp4fpr|pack|palm|paparazzi|payto|pkcs11|platform|pop|pres|prospero|proxy|pwid|psyc|pttp|qb|query|redis|rediss|reload|res|resource|rmi|rsync|rtmfp|rtmp|rtsp|rtsps|rtspu|s3|secondlife|service|session|sftp|sgn|shttp|sieve|simpleledger|sip|sips|skype|smb|sms|smtp|snews|snmp|soap.beep|soap.beeps|soldat|spiffe|spotify|ssh|steam|stun|stuns|submit|svn|tag|teamspeak|tel|teliaeid|telnet|tftp|tg|things|thismessage|tip|tn3270|tool|ts3server|turn|turns|tv|udp|unreal|urn|ut2004|v-event|vemmi|ventrilo|videotex|vnc|view-source|wais|webcal|wpid|ws|wss|wtai|wyciwyg|xcon|xcon-userid|xfire|xmlrpc.beep|xmlrpc.beeps|xmpp|xri|ymsgr|z39.50|z39.50r|z39.50s" : e.join("|")).split("|").map((o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
|
|
156
156
|
try {
|
|
157
|
-
const o = new URL(t), c = o.protocol.replace(":", ""), i = o.hostname, l = t.slice(t.indexOf("://") + 3).startsWith("/"),
|
|
158
|
-
if (r.split("|").includes(c) && (
|
|
157
|
+
const o = new URL(t), c = o.protocol.replace(":", ""), i = o.hostname, l = t.slice(t.indexOf("://") + 3).startsWith("/"), u = i.length > 0 && !/^\.+$/.test(i) && !l, a = c === "file" && l;
|
|
158
|
+
if (r.split("|").includes(c) && (u || a))
|
|
159
159
|
return !0;
|
|
160
160
|
} catch {
|
|
161
161
|
}
|
|
@@ -182,7 +182,7 @@ function Mt(t, e = []) {
|
|
|
182
182
|
function Pt(t) {
|
|
183
183
|
return it(t, "-");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function _(t) {
|
|
186
186
|
return t.length;
|
|
187
187
|
}
|
|
188
188
|
function It(t, e = 100, n = "...", r = !1) {
|
|
@@ -201,7 +201,7 @@ function qt(t, e = 100, n = "...") {
|
|
|
201
201
|
if (e <= 0)
|
|
202
202
|
return t;
|
|
203
203
|
const r = e, s = new RegExp(`^\\s*(?:\\S+\\s*){1,${r}}`, "u"), o = t.match(s);
|
|
204
|
-
return !o ||
|
|
204
|
+
return !o || _(t) === _(o[0]) ? t : o[0].trimEnd() + n;
|
|
205
205
|
}
|
|
206
206
|
function Gt(t, e, n, r = null) {
|
|
207
207
|
if (e === "")
|
|
@@ -318,28 +318,28 @@ function Ht(t, e) {
|
|
|
318
318
|
function Jt(t) {
|
|
319
319
|
return S(t) ? t.map((e) => e.replace(/[^0-9]/g, "")) : t.replace(/[^0-9]/g, "");
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Zt(t, e, n = " ") {
|
|
322
322
|
const r = t.length;
|
|
323
323
|
if (e <= r || n === "")
|
|
324
324
|
return t;
|
|
325
325
|
const s = e - r, o = Math.floor(s / 2), c = s - o;
|
|
326
|
-
return
|
|
326
|
+
return N(n, o) + t + N(n, c);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Kt(t, e, n = " ") {
|
|
329
329
|
const r = t.length;
|
|
330
330
|
if (e <= r || n === "")
|
|
331
331
|
return t;
|
|
332
332
|
const o = e - r;
|
|
333
|
-
return
|
|
333
|
+
return N(n, o) + t;
|
|
334
334
|
}
|
|
335
335
|
function jt(t, e, n = " ") {
|
|
336
336
|
const r = t.length;
|
|
337
337
|
if (e <= r || n === "")
|
|
338
338
|
return t;
|
|
339
339
|
const o = e - r;
|
|
340
|
-
return t +
|
|
340
|
+
return t + N(n, o);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function N(t, e) {
|
|
343
343
|
if (e <= 0 || t.length === 0)
|
|
344
344
|
return "";
|
|
345
345
|
const n = Math.ceil(e / t.length);
|
|
@@ -431,24 +431,24 @@ function Dt(t = 32, e = !0, n = !0, r = !0, s = !1) {
|
|
|
431
431
|
";"
|
|
432
432
|
] : null,
|
|
433
433
|
s ? [" "] : null
|
|
434
|
-
].filter((
|
|
434
|
+
].filter((p) => S(p));
|
|
435
435
|
if (l.length === 0 || t <= 0)
|
|
436
436
|
return "";
|
|
437
|
-
const
|
|
438
|
-
for (const
|
|
439
|
-
const m = O(0,
|
|
440
|
-
|
|
437
|
+
const u = [];
|
|
438
|
+
for (const p of l) {
|
|
439
|
+
const m = O(0, p.length - 1);
|
|
440
|
+
u.push(p[m]);
|
|
441
441
|
}
|
|
442
|
-
const a = Math.max(0, t -
|
|
443
|
-
for (let
|
|
442
|
+
const a = Math.max(0, t - u.length), g = l.flat();
|
|
443
|
+
for (let p = 0; p < a; p++) {
|
|
444
444
|
const m = O(0, g.length - 1);
|
|
445
|
-
|
|
445
|
+
u.push(g[m]);
|
|
446
446
|
}
|
|
447
|
-
for (let
|
|
448
|
-
const m = O(0,
|
|
449
|
-
p
|
|
447
|
+
for (let p = u.length - 1; p > 0; p--) {
|
|
448
|
+
const m = O(0, p), y = u[p];
|
|
449
|
+
u[p] = u[m], u[m] = y;
|
|
450
450
|
}
|
|
451
|
-
return
|
|
451
|
+
return u.join("");
|
|
452
452
|
}
|
|
453
453
|
function Qt(t, e, n = 0) {
|
|
454
454
|
if (e === "")
|
|
@@ -471,23 +471,23 @@ function Qt(t, e, n = 0) {
|
|
|
471
471
|
return !1;
|
|
472
472
|
}
|
|
473
473
|
function tt(t = 16) {
|
|
474
|
-
return (
|
|
474
|
+
return (E ?? ((n) => D(n)))(t);
|
|
475
475
|
}
|
|
476
476
|
function et(t) {
|
|
477
|
-
|
|
477
|
+
E = t;
|
|
478
478
|
}
|
|
479
479
|
function Vt(t, e) {
|
|
480
480
|
let n = 0;
|
|
481
481
|
const r = e ?? function(s) {
|
|
482
|
-
const o =
|
|
483
|
-
|
|
482
|
+
const o = E;
|
|
483
|
+
E = null;
|
|
484
484
|
const c = tt(s);
|
|
485
|
-
return
|
|
485
|
+
return E = o, n++, c;
|
|
486
486
|
};
|
|
487
487
|
et((s) => n < t.length ? String(t[n++]) : r(s));
|
|
488
488
|
}
|
|
489
489
|
function nt() {
|
|
490
|
-
|
|
490
|
+
E = null;
|
|
491
491
|
}
|
|
492
492
|
function Xt(t, e) {
|
|
493
493
|
return e <= 0 ? "" : t.repeat(e);
|
|
@@ -516,15 +516,15 @@ function vt(t, e) {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
function te(t, e, n, r = !0) {
|
|
519
|
-
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((
|
|
520
|
-
if (a === "") return
|
|
521
|
-
const
|
|
519
|
+
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((u, a, g) => {
|
|
520
|
+
if (a === "") return u;
|
|
521
|
+
const p = c[g] ?? "";
|
|
522
522
|
if (!r)
|
|
523
|
-
return
|
|
523
|
+
return u.split(a).join(p);
|
|
524
524
|
const m = new RegExp(i(a), "gi");
|
|
525
|
-
return
|
|
525
|
+
return u.replace(m, () => p);
|
|
526
526
|
}, l);
|
|
527
|
-
return
|
|
527
|
+
return z(n) ? f(n) : Array.from(n).map(f);
|
|
528
528
|
}
|
|
529
529
|
function rt(t, e, n) {
|
|
530
530
|
if (t = String(t), t === "")
|
|
@@ -552,7 +552,7 @@ function re(t, e, n, r = -1) {
|
|
|
552
552
|
let m = a.flags;
|
|
553
553
|
return m.includes("g") || (m += "g"), m.includes("u") || (m += "u"), new RegExp(a.source, m);
|
|
554
554
|
}
|
|
555
|
-
let g = a,
|
|
555
|
+
let g = a, p = "gu";
|
|
556
556
|
if (a.length >= 2 && a[0] === "/") {
|
|
557
557
|
let m = -1;
|
|
558
558
|
for (let y = a.length - 1; y > 0; y--)
|
|
@@ -570,12 +570,12 @@ function re(t, e, n, r = -1) {
|
|
|
570
570
|
const y = a.slice(m + 1);
|
|
571
571
|
if (y)
|
|
572
572
|
for (const w of y)
|
|
573
|
-
/[imsuy]/.test(w) && !
|
|
573
|
+
/[imsuy]/.test(w) && !p.includes(w) && (p += w);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
return new RegExp(
|
|
577
577
|
g,
|
|
578
|
-
Array.from(new Set(
|
|
578
|
+
Array.from(new Set(p.split(""))).join("")
|
|
579
579
|
);
|
|
580
580
|
} catch {
|
|
581
581
|
return null;
|
|
@@ -587,10 +587,10 @@ function re(t, e, n, r = -1) {
|
|
|
587
587
|
if (!g) return null;
|
|
588
588
|
i.push(g);
|
|
589
589
|
}
|
|
590
|
-
const f =
|
|
590
|
+
const f = K(e), l = f ? [] : s(e), u = (a) => {
|
|
591
591
|
let g = a;
|
|
592
|
-
for (let
|
|
593
|
-
const m = i[
|
|
592
|
+
for (let p = 0; p < i.length; p++) {
|
|
593
|
+
const m = i[p];
|
|
594
594
|
if (f) {
|
|
595
595
|
let y = 0;
|
|
596
596
|
const w = e;
|
|
@@ -600,20 +600,20 @@ function re(t, e, n, r = -1) {
|
|
|
600
600
|
if (r >= 0 && y >= r) return h;
|
|
601
601
|
y++;
|
|
602
602
|
const b = d.length > 0 && d[d.length - 1] !== null && typeof d[d.length - 1] == "object" ? d.length - 3 : d.length - 2, $ = [];
|
|
603
|
-
for (let
|
|
604
|
-
$.push(d[
|
|
605
|
-
const
|
|
606
|
-
return w(
|
|
603
|
+
for (let k = 0; k < b; k++)
|
|
604
|
+
$.push(d[k]);
|
|
605
|
+
const L = [h, ...$];
|
|
606
|
+
return w(L);
|
|
607
607
|
}
|
|
608
608
|
);
|
|
609
609
|
} else {
|
|
610
|
-
const y = l[
|
|
610
|
+
const y = l[p] ?? (l.length === 1 ? l[0] : "");
|
|
611
611
|
if (r < 0)
|
|
612
612
|
g = g.replace(m, (w, ...h) => {
|
|
613
|
-
const
|
|
614
|
-
return y.replace(/\$(\d{1,2})/g, ($,
|
|
615
|
-
const
|
|
616
|
-
return (b[
|
|
613
|
+
const A = h.length > 0 && h[h.length - 1] !== null && typeof h[h.length - 1] == "object" ? h.length - 3 : h.length - 2, b = h.slice(0, A).map(($) => String($));
|
|
614
|
+
return y.replace(/\$(\d{1,2})/g, ($, L) => {
|
|
615
|
+
const k = parseInt(L, 10);
|
|
616
|
+
return (b[k - 1] ?? "").toUpperCase();
|
|
617
617
|
});
|
|
618
618
|
});
|
|
619
619
|
else {
|
|
@@ -621,9 +621,9 @@ function re(t, e, n, r = -1) {
|
|
|
621
621
|
g = g.replace(m, (h, ...d) => {
|
|
622
622
|
if (w >= r) return h;
|
|
623
623
|
w++;
|
|
624
|
-
const b = d.length > 0 && d[d.length - 1] !== null && typeof d[d.length - 1] == "object" ? d.length - 3 : d.length - 2, $ = d.slice(0, b).map((
|
|
625
|
-
return y.replace(/\$(\d{1,2})/g, (
|
|
626
|
-
const P = parseInt(
|
|
624
|
+
const b = d.length > 0 && d[d.length - 1] !== null && typeof d[d.length - 1] == "object" ? d.length - 3 : d.length - 2, $ = d.slice(0, b).map((L) => String(L));
|
|
625
|
+
return y.replace(/\$(\d{1,2})/g, (L, k) => {
|
|
626
|
+
const P = parseInt(k, 10);
|
|
627
627
|
return ($[P - 1] ?? "").toUpperCase();
|
|
628
628
|
});
|
|
629
629
|
});
|
|
@@ -632,7 +632,7 @@ function re(t, e, n, r = -1) {
|
|
|
632
632
|
}
|
|
633
633
|
return g;
|
|
634
634
|
};
|
|
635
|
-
return S(n) ? n.map(
|
|
635
|
+
return S(n) ? n.map(u) : u(n);
|
|
636
636
|
}
|
|
637
637
|
function ot(t) {
|
|
638
638
|
let e = "", n = !1;
|
|
@@ -745,7 +745,7 @@ function M(t, e) {
|
|
|
745
745
|
if (t == null || e == null)
|
|
746
746
|
return !1;
|
|
747
747
|
let n;
|
|
748
|
-
|
|
748
|
+
z(e) || j(e) ? n = [e] : Symbol.iterator in Object(e) ? n = Array.from(e) : n = [e];
|
|
749
749
|
const r = String(t);
|
|
750
750
|
for (const s of n) {
|
|
751
751
|
if (s == null)
|
|
@@ -759,19 +759,24 @@ function M(t, e) {
|
|
|
759
759
|
function ue(t, e) {
|
|
760
760
|
return !M(t, e);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
762
|
+
function Z(t, e = !1) {
|
|
763
|
+
let n = t;
|
|
764
|
+
e && (n = t.replace(
|
|
765
|
+
/(^|[-_ \s])([A-Z]+)(?=[-_ \s]|$)/gu,
|
|
766
|
+
(f, l, u) => l + u.toLowerCase()
|
|
767
|
+
));
|
|
768
|
+
const r = n;
|
|
769
|
+
if (F.has(r))
|
|
770
|
+
return F.get(r);
|
|
771
|
+
const s = String(n).replace(/[-_]+/g, " "), o = s.trim() === "" ? [] : s.split(/\s+/u), c = (f) => {
|
|
772
|
+
if (!f) return f;
|
|
773
|
+
const l = Array.from(f), u = l[0].toUpperCase(), a = l.slice(1).join("");
|
|
774
|
+
return u + a;
|
|
775
|
+
}, i = o.map(c).join("");
|
|
776
|
+
return F.set(r, i), i;
|
|
777
|
+
}
|
|
778
|
+
function pe(t, e = !1) {
|
|
779
|
+
return Z(t, e);
|
|
775
780
|
}
|
|
776
781
|
function ge(t, e) {
|
|
777
782
|
if (!t || Object.keys(t).length === 0)
|
|
@@ -831,14 +836,14 @@ function ye(t, e = 75, n = `
|
|
|
831
836
|
if (f.length !== i.length && (i = f, i.length <= e))
|
|
832
837
|
break;
|
|
833
838
|
const l = i.slice(0, e + 1);
|
|
834
|
-
let
|
|
839
|
+
let u = -1;
|
|
835
840
|
for (let g = l.length - 1; g >= 0; g--)
|
|
836
841
|
if (/\s/u.test(l[g])) {
|
|
837
|
-
|
|
842
|
+
u = g;
|
|
838
843
|
break;
|
|
839
844
|
}
|
|
840
|
-
if (
|
|
841
|
-
o.push(i.slice(0,
|
|
845
|
+
if (u > 0) {
|
|
846
|
+
o.push(i.slice(0, u)), i = i.slice(u + 1);
|
|
842
847
|
continue;
|
|
843
848
|
}
|
|
844
849
|
const a = i.search(/\s/u);
|
|
@@ -865,7 +870,7 @@ function xe() {
|
|
|
865
870
|
function $e() {
|
|
866
871
|
R.clear(), C.clear(), F.clear();
|
|
867
872
|
}
|
|
868
|
-
function
|
|
873
|
+
function Ae() {
|
|
869
874
|
nt(), V(), X();
|
|
870
875
|
}
|
|
871
876
|
export {
|
|
@@ -878,11 +883,11 @@ export {
|
|
|
878
883
|
xt as betweenFirst,
|
|
879
884
|
$t as camel,
|
|
880
885
|
Se as camelCacheSize,
|
|
881
|
-
|
|
886
|
+
At as charAt,
|
|
882
887
|
bt as chopEnd,
|
|
883
|
-
|
|
888
|
+
kt as chopStart,
|
|
884
889
|
H as contains,
|
|
885
|
-
|
|
890
|
+
Et as containsAll,
|
|
886
891
|
nt as createRandomStringsNormally,
|
|
887
892
|
et as createRandomStringsUsing,
|
|
888
893
|
Vt as createRandomStringsUsingSequence,
|
|
@@ -891,8 +896,8 @@ export {
|
|
|
891
896
|
Ft as doesntEndWith,
|
|
892
897
|
ue as doesntStartWith,
|
|
893
898
|
W as endsWith,
|
|
894
|
-
|
|
895
|
-
|
|
899
|
+
Lt as excerpt,
|
|
900
|
+
_t as finish,
|
|
896
901
|
$e as flushCache,
|
|
897
902
|
ce as headline,
|
|
898
903
|
le as initials,
|
|
@@ -903,16 +908,16 @@ export {
|
|
|
903
908
|
Mt as isUrl,
|
|
904
909
|
Pt as kebab,
|
|
905
910
|
ct as lcfirst,
|
|
906
|
-
|
|
911
|
+
_ as length,
|
|
907
912
|
It as limit,
|
|
908
913
|
J as lower,
|
|
909
|
-
|
|
914
|
+
N as makePad,
|
|
910
915
|
Gt as mask,
|
|
911
916
|
Tt as match,
|
|
912
917
|
Ht as matchAll,
|
|
913
918
|
Jt as numbers,
|
|
914
|
-
|
|
915
|
-
|
|
919
|
+
Zt as padBoth,
|
|
920
|
+
Kt as padLeft,
|
|
916
921
|
jt as padRight,
|
|
917
922
|
pe as pascal,
|
|
918
923
|
Dt as password,
|
|
@@ -927,7 +932,7 @@ export {
|
|
|
927
932
|
st as replaceLast,
|
|
928
933
|
re as replaceMatches,
|
|
929
934
|
ee as replaceStart,
|
|
930
|
-
|
|
935
|
+
Ae as resetFactoryState,
|
|
931
936
|
oe as reverse,
|
|
932
937
|
it as snake,
|
|
933
938
|
we as snakeCacheSize,
|
|
@@ -935,7 +940,7 @@ export {
|
|
|
935
940
|
ie as start,
|
|
936
941
|
M as startsWith,
|
|
937
942
|
ot as stripTags,
|
|
938
|
-
|
|
943
|
+
Z as studly,
|
|
939
944
|
xe as studlyCacheSize,
|
|
940
945
|
ge as swap,
|
|
941
946
|
me as take,
|
|
@@ -943,9 +948,9 @@ export {
|
|
|
943
948
|
he as ucfirst,
|
|
944
949
|
lt as ucsplit,
|
|
945
950
|
ft as ucwords,
|
|
946
|
-
|
|
951
|
+
zt as unwrap,
|
|
947
952
|
de as wordCount,
|
|
948
953
|
ye as wordWrap,
|
|
949
954
|
qt as words,
|
|
950
|
-
|
|
955
|
+
Nt as wrap
|
|
951
956
|
};
|
|
@@ -150,6 +150,13 @@ export declare class Stringable {
|
|
|
150
150
|
* @returns The converted string as a new Stringable instance.
|
|
151
151
|
*/
|
|
152
152
|
convertCase(mode: ConvertCaseMode): Stringable;
|
|
153
|
+
/**
|
|
154
|
+
* Get the plural form of an English word with the count prepended.
|
|
155
|
+
*
|
|
156
|
+
* @param count - The count to determine pluralization. Arrays are counted by length.
|
|
157
|
+
* @returns The pluralized string with the formatted count prepended, as a new Stringable instance.
|
|
158
|
+
*/
|
|
159
|
+
counted(count: number | unknown[]): Stringable;
|
|
153
160
|
/**
|
|
154
161
|
* Replace consecutive instances of a given character with a single character.
|
|
155
162
|
*
|
|
@@ -383,11 +390,11 @@ export declare class Stringable {
|
|
|
383
390
|
/**
|
|
384
391
|
* Get the plural form of an English word.
|
|
385
392
|
*
|
|
386
|
-
* @param count - The count to determine singular or plural form. Defaults to 2.
|
|
393
|
+
* @param count - The count to determine singular or plural form. Arrays are counted by length. Defaults to 2.
|
|
387
394
|
* @param prependCount - Whether to prepend the count to the result. Defaults to false.
|
|
388
395
|
* @returns The pluralized string as a new Stringable instance.
|
|
389
396
|
*/
|
|
390
|
-
plural(count?: number, prependCount?: boolean): Stringable;
|
|
397
|
+
plural(count?: number | unknown[], prependCount?: boolean): Stringable;
|
|
391
398
|
/**
|
|
392
399
|
* Pluralize the last word of an English, studly caps case string.
|
|
393
400
|
*
|
|
@@ -603,15 +610,17 @@ export declare class Stringable {
|
|
|
603
610
|
/**
|
|
604
611
|
* Convert a value to studly caps case.
|
|
605
612
|
*
|
|
613
|
+
* @param normalize - When true, all-uppercase words (e.g. acronyms) are lowercased before conversion so "CBOR" becomes "Cbor" instead of "CBOR". Defaults to false.
|
|
606
614
|
* @returns The studly-cased string as a new Stringable instance.
|
|
607
615
|
*/
|
|
608
|
-
studly(): Stringable;
|
|
616
|
+
studly(normalize?: boolean): Stringable;
|
|
609
617
|
/**
|
|
610
618
|
* Convert the string to Pascal case.
|
|
611
619
|
*
|
|
620
|
+
* @param normalize - When true, all-uppercase words (e.g. acronyms) are lowercased before conversion so "CBOR" becomes "Cbor" instead of "CBOR". Defaults to false.
|
|
612
621
|
* @returns The pascal-cased string as a new Stringable instance.
|
|
613
622
|
*/
|
|
614
|
-
pascal(): Stringable;
|
|
623
|
+
pascal(normalize?: boolean): Stringable;
|
|
615
624
|
/**
|
|
616
625
|
* Returns the portion of the string specified by the start and length parameters.
|
|
617
626
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stringable/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stringable/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAoFvE,MAAM,MAAM,kBAAkB,GACxB,MAAM,GACN,MAAM,GACN,OAAO,GACP,CAAC,CAAC,QAAQ,EAAE,UAAU,KAAK,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAE5D,MAAM,MAAM,oBAAoB,GAC1B,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,GAC9D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