@tolki/str 1.0.9 → 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 CHANGED
@@ -60,7 +60,7 @@ However, if you are working on a backend project where bundle size is not a conc
60
60
 
61
61
  These are the string utilities that can be used independently as single functions.
62
62
 
63
- [after](#after) [afterLast](#afterlast) [apa](#apa) [ascii](#ascii) [before](#before) [beforeLast](#beforelast) [between](#between) [betweenFirst](#betweenfirst) [camel](#camel) [charAt](#charat) [chopEnd](#chopend) [chopStart](#chopstart) [contains](#contains) [containsAll](#containsall) [doesntContain](#doesntcontain) [deduplicate](#deduplicate) [doesntEndWith](#doesntendwith) [doesntStartWith](#doesntstartwith) [endsWith](#endswith) [excerpt](#excerpt) [finish](#finish) [fromBase64](#frombase64) [headline](#headline) [inlineMarkdown](#inlinemarkdown) [is](#is) [isAscii](#isascii) [isJson](#isjson) [isUrl](#isurl) [isUlid](#isulid) [isUuid](#isuuid) [kebab](#kebab) [lcfirst](#lcfirst) [length](#length) [limit](#limit) [lower](#lower) [markdown](#markdown) [mask](#mask) [match](#match) [matchAll](#matchall) [isMatch](#ismatch) [numbers](#numbers) [padBoth](#padboth) [padLeft](#padleft) [padRight](#padright) [pascal](#pascal) [pluralPascal](#pluralpascal) [password](#password) [plural](#plural) [pluralStudly](#pluralstudly) [position](#position) [random](#random) [remove](#remove) [repeat](#repeat) [replace](#replace) [replaceArray](#replacearray) [replaceFirst](#replacefirst) [replaceLast](#replacelast) [replaceMatches](#replacematches) [replaceStart](#replacestart) [replaceEnd](#replaceend) [reverse](#reverse) [singular](#singular) [slug](#slug) [snake](#snake) [squish](#squish) [start](#start) [startsWith](#startswith) [stripTags](#striptags) [studly](#studly) [substr](#substr) [substrCount](#substrcount) [substrReplace](#substrreplace) [swap](#swap) [take](#take) [title](#title) [toBase64](#tobase64) [transliterate](#transliterate) [trim](#trim) [ltrim](#ltrim) [rtrim](#rtrim) [ucfirst](#ucfirst) [ucsplit](#ucsplit) [ucwords](#ucwords) [upper](#upper) [ulid](#ulid) [unwrap](#unwrap) [uuid](#uuid) [uuid7](#uuid7) [wordCount](#wordcount) [wordWrap](#wordwrap) [words](#words) [wrap](#wrap) [str](#str) [of](#of)
63
+ [after](#after) [afterLast](#afterlast) [apa](#apa) [ascii](#ascii) [before](#before) [beforeLast](#beforelast) [between](#between) [betweenFirst](#betweenfirst) [camel](#camel) [charAt](#charat) [chopEnd](#chopend) [chopStart](#chopstart) [contains](#contains) [containsAll](#containsall) [doesntContain](#doesntcontain) [deduplicate](#deduplicate) [doesntEndWith](#doesntendwith) [doesntStartWith](#doesntstartwith) [endsWith](#endswith) [excerpt](#excerpt) [finish](#finish) [fromBase64](#frombase64) [headline](#headline) [initials](#initials) [inlineMarkdown](#inlinemarkdown) [is](#is) [isAscii](#isascii) [isJson](#isjson) [isUrl](#isurl) [isUlid](#isulid) [isUuid](#isuuid) [kebab](#kebab) [lcfirst](#lcfirst) [length](#length) [limit](#limit) [lower](#lower) [markdown](#markdown) [mask](#mask) [match](#match) [matchAll](#matchall) [isMatch](#ismatch) [numbers](#numbers) [padBoth](#padboth) [padLeft](#padleft) [padRight](#padright) [pascal](#pascal) [pluralPascal](#pluralpascal) [password](#password) [plural](#plural) [pluralStudly](#pluralstudly) [position](#position) [random](#random) [remove](#remove) [repeat](#repeat) [replace](#replace) [replaceArray](#replacearray) [replaceFirst](#replacefirst) [replaceLast](#replacelast) [replaceMatches](#replacematches) [replaceStart](#replacestart) [replaceEnd](#replaceend) [reverse](#reverse) [singular](#singular) [slug](#slug) [snake](#snake) [squish](#squish) [start](#start) [startsWith](#startswith) [stripTags](#striptags) [studly](#studly) [substr](#substr) [substrCount](#substrcount) [substrReplace](#substrreplace) [swap](#swap) [take](#take) [title](#title) [toBase64](#tobase64) [transliterate](#transliterate) [trim](#trim) [ltrim](#ltrim) [rtrim](#rtrim) [ucfirst](#ucfirst) [ucsplit](#ucsplit) [ucwords](#ucwords) [upper](#upper) [ulid](#ulid) [unwrap](#unwrap) [uuid](#uuid) [uuid7](#uuid7) [wordCount](#wordcount) [wordWrap](#wordwrap) [words](#words) [wrap](#wrap) [str](#str) [of](#of)
64
64
 
65
65
  ### String Utilities Details
66
66
 
@@ -497,6 +497,22 @@ const result2 = headline("EmailNotificationSent");
497
497
  // result2 is "Email Notification Sent"
498
498
  ```
499
499
 
500
+ #### initials
501
+
502
+ Get the "initials" representing each word in the provided string, optionally capitalizing.
503
+
504
+ ```javascript
505
+ import { initials } from "@tolki/str";
506
+
507
+ const result = initials("taylor otwell");
508
+
509
+ // result is "to"
510
+
511
+ const result2 = initials("taylor otwell", true);
512
+
513
+ // result2 is "TO"
514
+ ```
515
+
500
516
  #### inlineMarkdown
501
517
 
502
518
  Converts inline Markdown into HTML.
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, is as ne, isAscii as le, isJson as ce, isMatch as pe, isUrl as de, kebab as ue, lcfirst as me, length as fe, limit as he, lower as ge, makePad as Se, mask as Ue, match as we, matchAll as xe, numbers as be, padBoth as Ce, padLeft as ke, padRight as ye, pascal as Re, password as ze, position as Ae, random as We, remove as qe, repeat as Be, replace as Le, replaceArray as ve, replaceEnd as Ee, replaceFirst as Me, replaceLast as Ne, replaceMatches as Pe, replaceStart as Te, reverse as Fe, snake as De, snakeCacheSize as Ie, squish as Je, start as Oe, startsWith as je, stripTags as Ge, studly as He, studlyCacheSize as Ke, swap as Qe, take as Ve, toStringOr as Xe, ucfirst as Ye, ucsplit as Ze, ucwords as _e, unwrap as $e, wordCount as er, wordWrap as rr, words as tr, wrap as ar } from "./str.js";
9
- import { Stringable as ir, of as or, str as nr } from "./stringable/index.js";
10
- import { transliterate as cr } from "./transliterate/index.js";
11
- import { ltrim as dr, rtrim as ur, trim as mr } from "./trimmer/index.js";
12
- import { createUlidsNormally as hr, createUlidsUsing as gr, createUlidsUsingSequence as Sr, freezeUlids as Ur, isUlid as wr, ulid as xr } from "./ulid/index.js";
13
- import { createUuidsNormally as Cr, createUuidsUsing as kr, createUuidsUsingSequence as yr, freezeUuids as Rr, isUuid as zr, uuid as Ar, uuid7 as Wr } from "./uuid/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, 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
- ir as Stringable,
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
- hr as createUlidsNormally,
38
- gr as createUlidsUsing,
39
- Sr as createUlidsUsingSequence,
40
- Cr as createUuidsNormally,
41
- kr as createUuidsUsing,
42
- yr as createUuidsUsingSequence,
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
- Ur as freezeUlids,
52
- Rr as freezeUuids,
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
- ne as is,
58
- le as isAscii,
59
- ce as isJson,
60
- pe as isMatch,
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
- wr as isUlid,
64
- de as isUrl,
65
- zr as isUuid,
66
- ue as kebab,
67
- me as lcfirst,
68
- fe as length,
69
- he as limit,
70
- ge as lower,
71
- dr as ltrim,
72
- Se as makePad,
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
- Ue as mask,
76
- we as match,
77
- xe as matchAll,
76
+ we as mask,
77
+ xe as match,
78
+ be as matchAll,
78
79
  b as matchCase,
79
- be as numbers,
80
- or as of,
81
- Ce as padBoth,
82
- ke as padLeft,
83
- ye as padRight,
84
- Re as pascal,
85
- ze as password,
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
- Ae as position,
90
- We as random,
90
+ We as position,
91
+ qe as random,
91
92
  W as randomInt,
92
93
  q as randomString,
93
- qe as remove,
94
- Be as repeat,
95
- Le as replace,
96
- ve as replaceArray,
97
- Ee as replaceEnd,
98
- Me as replaceFirst,
99
- Ne as replaceLast,
100
- Pe as replaceMatches,
101
- Te as replaceStart,
102
- Fe as reverse,
103
- ur as rtrim,
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
- De as snake,
107
- Ie as snakeCacheSize,
108
- Je as squish,
109
- Oe as start,
110
- je as startsWith,
111
- nr as str,
112
- Ge as stripTags,
113
- He as studly,
114
- Ke as studlyCacheSize,
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
- Qe as swap,
119
- Ve as take,
119
+ Ve as swap,
120
+ Xe as take,
120
121
  d as title,
121
122
  n as toBase64,
122
- Xe as toStringOr,
123
- cr as transliterate,
124
- mr as trim,
125
- Ye as ucfirst,
126
- Ze as ucsplit,
127
- _e as ucwords,
128
- xr as ulid,
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
- $e as unwrap,
131
+ er as unwrap,
131
132
  u as upper,
132
- Ar as uuid,
133
- Wr as uuid7,
134
- er as wordCount,
135
- rr as wordWrap,
136
- tr as words,
137
- ar as wrap
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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,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAMzD;AAED;;;;;;;GAOG;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 K, isNumber as Z } from "@tolki/utils";
2
- import { title as I, upper as D } from "./convertcase/index.js";
3
- import { randomInt as O, randomString as Q } from "./random/index.js";
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 V } from "./trimmer/index.js";
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 T(t, e) {
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 X(t, e) {
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 Y(t, e) {
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 : Y(T(t, e), n);
33
+ return e === "" || n === "" ? t : X(B(t, e), n);
34
34
  }
35
35
  function ht(t, e, n) {
36
- return e === "" || n === "" ? t : X(T(t, e), n);
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(J(t));
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 B(t, e, n = !1) {
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 (!B(t, r, n))
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 !B(t, e, n);
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 H(t) {
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 j(t = 16) {
472
- return (L ?? ((n) => Q(n)))(t);
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 = j(s);
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 Dt(t, e) {
490
+ function jt(t, e) {
491
491
  return e <= 0 ? "" : t.repeat(e);
492
492
  }
493
- function Qt(t, e, n) {
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 Vt(t, e) {
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 Xt(t, e, n, r = !0) {
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 Yt(t, e, n) {
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 jt(t, e, n) {
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 = K(e), l = f ? [] : s(e), p = (a) => {
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 = H(s)), R.set(r, s), 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 oe(t) {
736
- return V(t).replace(/[\s\u3164\u1160]+/gu, " ");
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) || Z(e) ? n = [e] : Symbol.iterator in Object(e) ? n = Array.from(e) : n = [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 ie(t, e) {
757
+ function ce(t, e) {
754
758
  return !U(t, e);
755
759
  }
756
- function J(t) {
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 ce(t) {
768
- return J(t);
771
+ function le(t) {
772
+ return K(t);
769
773
  }
770
- function le(t, e) {
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 fe(t, e) {
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 H(S(t, 0, 1)) + S(t, 1);
788
+ return J(S(t, 0, 1)) + S(t, 1);
785
789
  }
786
- function ae(t) {
787
- return D(S(t, 0, 1)) + S(t, 1);
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 ue(t, e = null) {
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 pe(t, e = 75, n = `
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 ge() {
854
+ function me() {
851
855
  return R.size;
852
856
  }
853
- function me() {
857
+ function he() {
854
858
  return C.size;
855
859
  }
856
- function he() {
860
+ function de() {
857
861
  return F.size;
858
862
  }
859
- function de() {
863
+ function ye() {
860
864
  R.clear(), C.clear(), F.clear();
861
865
  }
862
866
  export {
863
- T as after,
867
+ B as after,
864
868
  gt as afterLast,
865
- se as apa,
866
- X as before,
867
- Y as beforeLast,
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
- me as camelCacheSize,
875
+ he as camelCacheSize,
872
876
  yt as charAt,
873
877
  xt as chopEnd,
874
878
  wt as chopStart,
875
- B as contains,
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
- ie as doesntStartWith,
887
+ ce as doesntStartWith,
884
888
  M as endsWith,
885
889
  St as excerpt,
886
890
  Et as finish,
887
- de as flushCache,
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
- H as lower,
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
- ce as pascal,
912
+ le as pascal,
908
913
  Ht as password,
909
914
  Jt as position,
910
- j as random,
915
+ Y as random,
911
916
  te as remove,
912
- Dt as repeat,
913
- Xt as replace,
914
- Qt as replaceArray,
915
- jt as replaceEnd,
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
- Yt as replaceStart,
924
+ Xt as replaceStart,
920
925
  ee as reverse,
921
926
  rt as snake,
922
- ge as snakeCacheSize,
923
- oe as squish,
927
+ me as snakeCacheSize,
928
+ ie as squish,
924
929
  ne as start,
925
930
  U as startsWith,
926
931
  nt as stripTags,
927
- J as studly,
928
- he as studlyCacheSize,
929
- le as swap,
930
- fe as take,
931
- Vt as toStringOr,
932
- ae as ucfirst,
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
- ue as wordCount,
937
- pe as wordWrap,
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
  *
@@ -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;AA6EvE,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,IAAI,CAAC;AAEX;;;;;;;GAOG;AACH,wBAAgB,EAAE,CAAC,KAAK,GAAE,MAAW,GAAG,UAAU,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,GAAG,CAAC,KAAK,GAAE,MAAW,GAAG,UAAU,CAElD;AAED,qBAAa,UAAU;IAMP,OAAO,CAAC,QAAQ,CAAC,MAAM;IALnC;;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AAO,IAAI,MAAM;IAIjB;;;;OAIG;IACH,SAAS,IAAI,OAAO;IAMpB;;;;OAIG;IACH,MAAM,IAAI,IAAI,GAAG,IAAI;IAKrB;;;;OAIG;IACH,aAAa,IAAI,MAAM;CAG1B"}
@@ -5,15 +5,15 @@ import { convertCase as m, upper as _, title as E } from "../convertcase/index.j
5
5
  import { markdown as y, inlineMarkdown as A } from "../markdown/index.js";
6
6
  import { plural as W, pluralStudly as x, pluralPascal as k, singular as N } from "../pluralizer/index.js";
7
7
  import { substr as U, substrCount as C, substrReplace as L } from "../replacer/index.js";
8
- import { after as M, afterLast as F, before as I, beforeLast as B, between as R, betweenFirst as j, camel as D, charAt as T, chopStart as P, chopEnd as q, contains as J, containsAll as V, doesntContain as $, deduplicate as z, endsWith as G, doesntEndWith as X, excerpt as H, finish as K, is as O, isAscii as Q, isJson as Y, isUrl as Z, kebab as g, length as b, limit as S, lower as a, mask as ee, match as te, isMatch as se, matchAll as re, numbers as ne, padBoth as ue, padLeft as ie, padRight as he, position as le, remove as ae, reverse as oe, repeat as we, replace as ve, replaceArray as ce, replaceFirst as pe, replaceStart as de, replaceLast as fe, replaceEnd as me, replaceMatches as _e, squish as Ee, start as ye, stripTags as Ae, headline as We, apa as xe, snake as ke, startsWith as Ne, doesntStartWith as Ue, studly as Ce, pascal as Le, swap as Me, take as Fe, lcfirst as Ie, ucfirst as Be, ucsplit as Re, ucwords as je, words as De, wordCount as Te, wordWrap as Pe, wrap as qe, unwrap as Je } from "../str.js";
9
- import { transliterate as Ve } from "../transliterate/index.js";
10
- import { trim as o, ltrim as $e, rtrim as ze } from "../trimmer/index.js";
11
- import { isUlid as Ge } from "../ulid/index.js";
12
- import { isUuid as Xe } from "../uuid/index.js";
13
- function rt(h = "") {
8
+ import { after as M, afterLast as F, before as I, beforeLast as B, between as R, betweenFirst as j, camel as D, charAt as T, chopStart as P, chopEnd as q, contains as J, containsAll as V, doesntContain as $, deduplicate as z, endsWith as G, doesntEndWith as X, excerpt as H, finish as K, is as O, isAscii as Q, isJson as Y, isUrl as Z, kebab as g, length as b, limit as S, lower as a, mask as ee, match as te, isMatch as se, matchAll as re, numbers as ne, padBoth as ue, padLeft as ie, padRight as he, position as le, remove as ae, reverse as oe, repeat as we, replace as ve, replaceArray as ce, replaceFirst as pe, replaceStart as de, replaceLast as fe, replaceEnd as me, replaceMatches as _e, squish as Ee, start as ye, stripTags as Ae, headline as We, initials as xe, apa as ke, snake as Ne, startsWith as Ue, doesntStartWith as Ce, studly as Le, pascal as Me, swap as Fe, take as Ie, lcfirst as Be, ucfirst as Re, ucsplit as je, ucwords as De, words as Te, wordCount as Pe, wordWrap as qe, wrap as Je, unwrap as Ve } from "../str.js";
9
+ import { transliterate as $e } from "../transliterate/index.js";
10
+ import { trim as o, ltrim as ze, rtrim as Ge } from "../trimmer/index.js";
11
+ import { isUlid as Xe } from "../ulid/index.js";
12
+ import { isUuid as He } from "../uuid/index.js";
13
+ function nt(h = "") {
14
14
  return new s(h);
15
15
  }
16
- function nt(h = "") {
16
+ function ut(h = "") {
17
17
  return new s(h);
18
18
  }
19
19
  class s {
@@ -314,7 +314,7 @@ class s {
314
314
  * @returns True if the string is a valid UUID, false otherwise.
315
315
  */
316
316
  isUuid(e = null) {
317
- return Xe(this._value, e);
317
+ return He(this._value, e);
318
318
  }
319
319
  /**
320
320
  * Determine if a given string is a valid ULID.
@@ -322,7 +322,7 @@ class s {
322
322
  * @return True if the string is a valid ULID, false otherwise.
323
323
  */
324
324
  isUlid() {
325
- return Ge(this._value);
325
+ return Xe(this._value);
326
326
  }
327
327
  /**
328
328
  * Determine if the given string is empty.
@@ -722,13 +722,21 @@ class s {
722
722
  headline() {
723
723
  return new s(We(this._value));
724
724
  }
725
+ /**
726
+ * Convert the given string to only its initials.
727
+ *
728
+ * @returns The initials of the string as a new Stringable instance.
729
+ */
730
+ initials() {
731
+ return new s(xe(this._value));
732
+ }
725
733
  /**
726
734
  * Convert the given string to APA-style title case.
727
735
  *
728
736
  * @returns The APA title-cased string as a new Stringable instance.
729
737
  */
730
738
  apa() {
731
- return new s(xe(this._value));
739
+ return new s(ke(this._value));
732
740
  }
733
741
  /**
734
742
  * Transliterate a string to its closest ASCII representation.
@@ -736,7 +744,7 @@ class s {
736
744
  * @returns The transliterated string as a new Stringable instance.
737
745
  */
738
746
  transliterate() {
739
- return new s(Ve(this._value));
747
+ return new s($e(this._value));
740
748
  }
741
749
  /**
742
750
  * Get the singular form of an English word.
@@ -763,7 +771,7 @@ class s {
763
771
  * @returns The snake-cased string as a new Stringable instance.
764
772
  */
765
773
  snake(e = "_") {
766
- return new s(ke(this._value, e));
774
+ return new s(Ne(this._value, e));
767
775
  }
768
776
  /**
769
777
  * Determine if a given string starts with a given substring.
@@ -772,7 +780,7 @@ class s {
772
780
  * @returns boolean - True if the substring(s) are found, false otherwise
773
781
  */
774
782
  startsWith(e) {
775
- return Ne(this._value, e);
783
+ return Ue(this._value, e);
776
784
  }
777
785
  /**
778
786
  * Determine if a given string doesn't start with a given substring.
@@ -781,7 +789,7 @@ class s {
781
789
  * @returns boolean - True if the substring(s) are not found, false otherwise
782
790
  */
783
791
  doesntStartWith(e) {
784
- return Ue(this._value, e);
792
+ return Ce(this._value, e);
785
793
  }
786
794
  /**
787
795
  * Convert a value to studly caps case.
@@ -789,7 +797,7 @@ class s {
789
797
  * @returns The studly-cased string as a new Stringable instance.
790
798
  */
791
799
  studly() {
792
- return new s(Ce(this._value));
800
+ return new s(Le(this._value));
793
801
  }
794
802
  /**
795
803
  * Convert the string to Pascal case.
@@ -797,7 +805,7 @@ class s {
797
805
  * @returns The pascal-cased string as a new Stringable instance.
798
806
  */
799
807
  pascal() {
800
- return new s(Le(this._value));
808
+ return new s(Me(this._value));
801
809
  }
802
810
  /**
803
811
  * Returns the portion of the string specified by the start and length parameters.
@@ -840,7 +848,7 @@ class s {
840
848
  * @returns The updated Stringable instance.
841
849
  */
842
850
  swap(e) {
843
- return new s(Me(e, this._value));
851
+ return new s(Fe(e, this._value));
844
852
  }
845
853
  /**
846
854
  * Take the first or last {$limit} characters.
@@ -849,7 +857,7 @@ class s {
849
857
  * @returns The resulting substring as a new Stringable instance.
850
858
  */
851
859
  take(e) {
852
- return new s(Fe(this._value, e));
860
+ return new s(Ie(this._value, e));
853
861
  }
854
862
  /**
855
863
  * Trim the string of the given characters.
@@ -867,7 +875,7 @@ class s {
867
875
  * @returns The left-trimmed string as a new Stringable instance.
868
876
  */
869
877
  ltrim(e = null) {
870
- return new s($e(this._value, e));
878
+ return new s(ze(this._value, e));
871
879
  }
872
880
  /**
873
881
  * Right trim the string of the given characters.
@@ -876,7 +884,7 @@ class s {
876
884
  * @returns The right-trimmed string as a new Stringable instance.
877
885
  */
878
886
  rtrim(e = null) {
879
- return new s(ze(this._value, e));
887
+ return new s(Ge(this._value, e));
880
888
  }
881
889
  /**
882
890
  * Make a string's first character lowercase.
@@ -884,7 +892,7 @@ class s {
884
892
  * @returns The updated Stringable instance.
885
893
  */
886
894
  lcfirst() {
887
- return new s(Ie(this._value));
895
+ return new s(Be(this._value));
888
896
  }
889
897
  /**
890
898
  * Make a string's first character uppercase.
@@ -892,7 +900,7 @@ class s {
892
900
  * @returns The updated Stringable instance.
893
901
  */
894
902
  ucfirst() {
895
- return new s(Be(this._value));
903
+ return new s(Re(this._value));
896
904
  }
897
905
  /**
898
906
  * Split a string by uppercase characters.
@@ -900,7 +908,7 @@ class s {
900
908
  * @returns An array of substrings split at uppercase characters.
901
909
  */
902
910
  ucsplit() {
903
- return Re(this._value);
911
+ return je(this._value);
904
912
  }
905
913
  /**
906
914
  * Uppercase the first character of each word in a string.
@@ -908,7 +916,7 @@ class s {
908
916
  * @returns The updated Stringable instance.
909
917
  */
910
918
  ucwords() {
911
- return new s(je(this._value));
919
+ return new s(De(this._value));
912
920
  }
913
921
  /**
914
922
  * Apply the callback if the given "value" is (or resolves to) truthy.
@@ -1119,7 +1127,7 @@ class s {
1119
1127
  * @returns The truncated string as a new Stringable instance.
1120
1128
  */
1121
1129
  words(e = 100, t = "...") {
1122
- return new s(De(this._value, e, t));
1130
+ return new s(Te(this._value, e, t));
1123
1131
  }
1124
1132
  /**
1125
1133
  * Get the number of words a string contains.
@@ -1128,7 +1136,7 @@ class s {
1128
1136
  * @returns The number of words in the string.
1129
1137
  */
1130
1138
  wordCount(e = null) {
1131
- return Te(this._value, e);
1139
+ return Pe(this._value, e);
1132
1140
  }
1133
1141
  /**
1134
1142
  * Wrap a string to a given number of characters.
@@ -1141,7 +1149,7 @@ class s {
1141
1149
  wordWrap(e = 75, t = `
1142
1150
  `, r = !1) {
1143
1151
  return new s(
1144
- Pe(this._value, e, t, r)
1152
+ qe(this._value, e, t, r)
1145
1153
  );
1146
1154
  }
1147
1155
  /**
@@ -1152,7 +1160,7 @@ class s {
1152
1160
  * @returns The wrapped string as a new Stringable instance.
1153
1161
  */
1154
1162
  wrap(e, t = null) {
1155
- return new s(qe(this._value, e, t));
1163
+ return new s(Je(this._value, e, t));
1156
1164
  }
1157
1165
  /**
1158
1166
  * Unwrap the string with the given strings.
@@ -1162,7 +1170,7 @@ class s {
1162
1170
  * @returns The unwrapped string as a new Stringable instance.
1163
1171
  */
1164
1172
  unwrap(e, t = null) {
1165
- return new s(Je(this._value, e, t));
1173
+ return new s(Ve(this._value, e, t));
1166
1174
  }
1167
1175
  /**
1168
1176
  * Convert the string to Base64 encoding.
@@ -1245,6 +1253,6 @@ class s {
1245
1253
  }
1246
1254
  export {
1247
1255
  s as Stringable,
1248
- rt as of,
1249
- nt as str
1256
+ nt as of,
1257
+ ut as str
1250
1258
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolki/str",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Utilities for working with strings similar to Laravel's Str & Stringable classes.",
5
5
  "author": "Abraham Arango <https://github.com/abetwothree>",
6
6
  "license": "MIT",