@tolki/str 1.7.1 → 1.8.1

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
@@ -28,7 +28,7 @@ pnpm add @tolki/str
28
28
 
29
29
  ### Importing the Package
30
30
 
31
- You can import individual functions for better tree-shaking or the entire package (not recommended).:
31
+ You can import individual functions or the whole package as a namespace. Both tree-shake the same way:
32
32
 
33
33
  Importing individual functions:
34
34
 
@@ -41,10 +41,10 @@ const camelCaseString = camel("hello world"); // 'helloWorld'
41
41
  const choppedString = chopEnd("HelloWorld", 5); // 'Hello'
42
42
  ```
43
43
 
44
- Importing the entire package:
44
+ Importing the package as a namespace:
45
45
 
46
46
  ```typescript
47
- // Import the entire package (not recommended for tree-shaking)
47
+ // Import the package as a namespace
48
48
  import * as Str from "@tolki/str";
49
49
 
50
50
  // Example usage
@@ -52,9 +52,21 @@ const camelCaseString = Str.camel("hello world"); // 'helloWorld'
52
52
  const choppedString = Str.chopEnd("HelloWorld", 5); // 'Hello'
53
53
  ```
54
54
 
55
- The reason that importing the entire package is not recommended is that it will include all functions in your bundle, even the ones you don't use, which can lead to larger bundle sizes. Importing individual functions allows your end files to only include the code that is actually used, resulting in smaller and more efficient bundles.
55
+ A namespace import that reads its members by name, such as `Str.camel(...)`, shakes exactly like named imports in Rollup, Rolldown (Vite 8), esbuild, webpack and Rspack: your bundle holds only the members you use. Passing the namespace object around, or reading a computed member such as `Str[name]`, keeps every function. See [Bundling and Tree-Shaking](https://tolki.abe.dev/tree-shaking.html#namespace-imports).
56
56
 
57
- However, if you are working on a backend project where bundle size is not a concern, importing the entire package can be more convenient.
57
+ ### Bundling
58
+
59
+ A helper call whose result nothing uses drops out of your bundle in Rollup, Rolldown (Vite 8), webpack and Rspack, because the helpers are marked as free of side effects. This holds for a call at the top level of a module too.
60
+
61
+ The exception is Vite 8 (Rolldown) and Rspack, where an unused top-level call to `uuid`, `uuid7`, `ulid`, `slug`, `ascii`, `markdown`, `inlineMarkdown`, `markDownRenderer`, `str`, `of`, `plural`, `singular`, `counted`, `isPlural`, `isSingular`, `pluralStudly`, `pluralPascal`, `matchCase` or `uncountable` drops the call but can keep the code of the package behind it (uuid, ulid, pluralize, markdown-it, transliteration). Writing `/* @__PURE__ */` before the call drops everything:
62
+
63
+ ```typescript
64
+ export const id = /* @__PURE__ */ uuid();
65
+ ```
66
+
67
+ esbuild doesn't follow the mark across files, so it needs the same comment on any helper call. [Bundling and Tree-Shaking](https://tolki.abe.dev/tree-shaking.html) covers every bundler.
68
+
69
+ The functions that set or clear a generator or the casing caches (`createRandomStringsUsing`, `createUuidsUsing`, `createUlidsUsing`, `freezeUuids`, `freezeUlids`, `flushCache`, `resetFactoryState` and the other `create*` helpers) change module state, and so does `inflector`, which registers the pluralizer's rules on the shared `pluralize` instance. A call to any of them is always kept.
58
70
 
59
71
  ## Tolki String Utilities List
60
72
 
@@ -1182,6 +1194,16 @@ const result = remove(
1182
1194
  // result is "Ptr Pipr pickd a pck of pickld ppprs."
1183
1195
  ```
1184
1196
 
1197
+ The subject can also be a list, an object or a `Map` of strings, and the result keeps its shape and keys. A collection gives back what its `all()` holds, and any other iterable gives a list:
1198
+
1199
+ ```javascript
1200
+ import { remove } from "@tolki/str";
1201
+
1202
+ const result = remove("o", { first: "Foo", last: "Boo" });
1203
+
1204
+ // result is { first: "F", last: "B" }
1205
+ ```
1206
+
1185
1207
  #### repeat
1186
1208
 
1187
1209
  Repeat the given string.
@@ -1221,6 +1243,16 @@ const result = replace(
1221
1243
  // result is "Laravel Framework for Web Artisans"
1222
1244
  ```
1223
1245
 
1246
+ The subject can also be a list, an object or a `Map` of strings, and the result keeps its shape and keys. A collection gives back what its `all()` holds, and any other iterable gives a list:
1247
+
1248
+ ```javascript
1249
+ import { replace } from "@tolki/str";
1250
+
1251
+ const result = replace("o", "0", { first: "Foo", last: "Boo" });
1252
+
1253
+ // result is { first: "F00", last: "B00" }
1254
+ ```
1255
+
1224
1256
  #### replaceArray
1225
1257
 
1226
1258
  Replace a given value in the string sequentially with an array.
@@ -1486,6 +1518,8 @@ const result = substrCount(
1486
1518
  // result is 2
1487
1519
  ```
1488
1520
 
1521
+ Offsets and lengths count characters, so an emoji counts as one. An empty needle throws, as it does in PHP. <!-- docs/php-parity/Str/substrCount.json, "substrCount-laravel-multibyte", "substrCount-empty-needle" -->
1522
+
1489
1523
  #### substrReplace
1490
1524
 
1491
1525
  Replace text within a portion of a string.
@@ -1888,7 +1922,7 @@ const result2 = wrap("is", "This ", " Laravel!");
1888
1922
 
1889
1923
  Using the `str` or `of` functions is discouraged for frontend projects because it will import the entire `Stringable` class, all of its methods, and all 3rd party dependencies into your final bundle, which may significantly increase its size.
1890
1924
 
1891
- For frontend projects, it is recommended to use the individual string functions instead for better tree-shaking and smaller bundle sizes.
1925
+ For frontend projects, it is recommended to use the individual string functions instead for better tree-shaking and smaller bundle sizes. In Rolldown and Rspack, even an unused top-level `str(...)` or `of(...)` call can leave the class behind unless the call is written `/* @__PURE__ */`; see [Bundling and Tree-Shaking](https://tolki.abe.dev/tree-shaking.html#dependency-residue).
1892
1926
 
1893
1927
  Also unlike the standalone functions on this page, `str`/`of` return a `Stringable` class instance rather than a plain value, so there's no live playground for them here — try the fluent methods it exposes (like `.append()` or `.snake()`) directly in your own code instead.
1894
1928
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ascii/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,IAAI,CAChB,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,MAAY,EACvB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAiB,GACnD,MAAM,CAsER"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ascii/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;;;;;;;;;GAWG;AAEH,wBAAgB,IAAI,CAChB,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,MAAY,EACvB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAiB,GACnD,MAAM,CAsER"}
@@ -1,9 +1,11 @@
1
1
  import { lower as e } from "../str.js";
2
2
  import { transliterate as t } from "transliteration";
3
3
  // src/ascii/index.ts
4
+ /* @__NO_SIDE_EFFECTS__ */
4
5
  function n(e) {
5
6
  return t(e);
6
7
  }
8
+ /* @__NO_SIDE_EFFECTS__ */
7
9
  function r(t, r = "-", i = { "@": "at" }) {
8
10
  let a = r, o = (e) => e.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"), s = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), c = (t) => {
9
11
  let n = t, r = RegExp(`[${o(a === "-" ? "_" : "-")}]+`, "gu");
@@ -11,7 +13,7 @@ function r(t, r = "-", i = { "@": "at" }) {
11
13
  let c = {};
12
14
  for (let [e, t] of Object.entries(i)) c[e] = a + t + a;
13
15
  for (let [e, t] of Object.entries(c)) e !== "" && (n = n.split(e).join(t));
14
- if (n = e(n), a === "") return n = n.replace(/[^\p{L}\p{N}\s]+/gu, ""), n = n.replace(/[\s]+/gu, ""), n;
16
+ if (n = /* @__PURE__ */ e(n), a === "") return n = n.replace(/[^\p{L}\p{N}\s]+/gu, ""), n = n.replace(/[\s]+/gu, ""), n;
15
17
  {
16
18
  let e = RegExp(`[^${o(a)}\\p{L}\\p{N}\\s]+`, "gu");
17
19
  n = n.replace(e, "");
@@ -20,7 +22,7 @@ function r(t, r = "-", i = { "@": "at" }) {
20
22
  let r = RegExp(`^${s(a)}+|${s(a)}+$`, "gu");
21
23
  return n = n.replace(r, ""), n;
22
24
  }
23
- }, l = c(t), u = c(n(t));
25
+ }, l = c(t), u = c(/* @__PURE__ */ n(t));
24
26
  return Object.keys(i).some((e) => /[A-Za-z0-9]/.test(e)) ? u : l;
25
27
  }
26
28
  export { n as ascii, r as slug };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base64/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAgC9C;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAsBvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACtB,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,OAAe,GACxB,MAAM,GAAG,KAAK,CAqEhB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base64/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAgC9C;AAED;;;;;GAKG;AAEH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAsBvD;AAED;;;;;;;;GAQG;AAEH,wBAAgB,UAAU,CACtB,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,OAAe,GACxB,MAAM,GAAG,KAAK,CAqEhB"}
@@ -1,5 +1,6 @@
1
1
  import { isFunction as e } from "@tolki/utils";
2
2
  // src/base64/index.ts
3
+ /* @__NO_SIDE_EFFECTS__ */
3
4
  function t(t) {
4
5
  let n = i();
5
6
  if (n.Buffer && e(n.Buffer.from)) return n.Buffer.from(t, "utf8").toString("base64");
@@ -11,6 +12,7 @@ function t(t) {
11
12
  }
12
13
  return o(a(t));
13
14
  }
15
+ /* @__NO_SIDE_EFFECTS__ */
14
16
  function n(t) {
15
17
  let n = i();
16
18
  if (n.Buffer && e(n.Buffer.from)) return n.Buffer.from(t).toString("base64");
@@ -18,6 +20,7 @@ function n(t) {
18
20
  for (let e = 0; e < t.length; e++) r += String.fromCharCode(t[e]);
19
21
  return e(n.btoa) ? n.btoa(r) : o(r);
20
22
  }
23
+ /* @__NO_SIDE_EFFECTS__ */
21
24
  function r(t, n = !1) {
22
25
  let r = i(), a = String(t);
23
26
  if (n) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/convertcase/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;CASZ,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEzE;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CACvB,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,eAAgC,GACvC,MAAM,CAER;AAED;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/convertcase/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;CASZ,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEzE;;;;;;;;;;GAUG;AAEH,wBAAgB,WAAW,CACvB,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,eAAgC,GACvC,MAAM,CAER;AAED;;;;;;;GAOG;AAEH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;;;;;GAOG;AAEH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3C"}
@@ -10,12 +10,15 @@ var i = {
10
10
  title_simple: "title_simple",
11
11
  fold_simple: "fold_simple"
12
12
  };
13
+ /* @__NO_SIDE_EFFECTS__ */
13
14
  function a(e, t = i.fold) {
14
15
  return c(e, t);
15
16
  }
17
+ /* @__NO_SIDE_EFFECTS__ */
16
18
  function o(e) {
17
19
  return c(e, i.upper);
18
20
  }
21
+ /* @__NO_SIDE_EFFECTS__ */
19
22
  function s(e) {
20
23
  return c(e, i.title);
21
24
  }
package/dist/index.d.ts CHANGED
@@ -11,4 +11,5 @@ export * from './transliterate';
11
11
  export * from './trimmer';
12
12
  export * from './ulid';
13
13
  export * from './uuid';
14
+ export type { StringSubject, StringSubjectResult } from '@tolki/types';
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/markdown/index.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,EAAE,EACf,KAAK,OAAO,IAAI,iBAAiB,EACjC,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACzB,MAAM,aAAa,CAAC;AAIrB,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACtD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,MAAM,iBAAiB,GACvB,YAAY,GACZ,iBAAiB,CAAC,OAAO,CAAC,GAC1B,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,EAAE,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACpB,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,OAAO,GAAE,eAA+C,EACxD,UAAU,GAAE,kBAAuB,GACpC,MAAM,CAMR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,OAAO,GAAE,eAA+B,EACxC,UAAU,GAAE,kBAAuB,GACpC,MAAM,CAMR;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,kBAAkB,cAqCjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/markdown/index.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,EAAE,EACf,KAAK,OAAO,IAAI,iBAAiB,EACjC,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACzB,MAAM,aAAa,CAAC;AAIrB,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACtD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,MAAM,iBAAiB,GACvB,YAAY,GACZ,iBAAiB,CAAC,OAAO,CAAC,GAC1B,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,EAAE,CAAC;AAErD;;;;;;;;;;;GAWG;AAEH,wBAAgB,QAAQ,CACpB,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,OAAO,GAAE,eAA+C,EACxD,UAAU,GAAE,kBAAuB,GACpC,MAAM,CAMR;AAED;;;;;;;;;;;GAWG;AAEH,wBAAgB,cAAc,CAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,OAAO,GAAE,eAA+B,EACxC,UAAU,GAAE,kBAAuB,GACpC,MAAM,CAMR;AAED;;;;;;;;GAQG;AAEH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,kBAAkB,cAqCjC"}
@@ -3,15 +3,18 @@ import t from "markdown-it";
3
3
  import n from "markdown-it-anchor";
4
4
  import r from "markdown-it-task-lists";
5
5
  // src/markdown/index.ts
6
+ /* @__NO_SIDE_EFFECTS__ */
6
7
  function i(e, t = {
7
8
  gfm: !0,
8
9
  anchors: !1
9
10
  }, n = []) {
10
- return e === null ? "" : o(t, n).render(e);
11
+ return e === null ? "" : (/* @__PURE__ */ o(t, n)).render(e);
11
12
  }
13
+ /* @__NO_SIDE_EFFECTS__ */
12
14
  function a(e, t = { gfm: !0 }, n = []) {
13
- return e === null ? "" : o(t, n).renderInline(e);
15
+ return e === null ? "" : (/* @__PURE__ */ o(t, n)).renderInline(e);
14
16
  }
17
+ /* @__NO_SIDE_EFFECTS__ */
15
18
  function o(i, a) {
16
19
  let { html: o = !1, linkify: s = !0, breaks: c = !0, gfm: l = !0, anchors: u = !1, allowUnsafeLinks: d = !1, ...f } = i, p = new t({
17
20
  html: o,
@@ -100,6 +100,8 @@ export declare function matchCase(value: string, comparison: string): string;
100
100
  /**
101
101
  * Get the pluralize instance
102
102
  *
103
+ * @sideEffects state - Registers tolki's uncountable rules on the shared pluralize instance.
104
+ *
103
105
  * @returns The pluralize instance.
104
106
  */
105
107
  export declare function inflector(): typeof pluralize;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pluralizer/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,MAAM,WAAW,eAAe;IAC5B,WAAW,EAAE,MAAM,EAAE,CAAC;CACzB;AAoDD;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,MAAM,CAKrE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,MAAM,CAErE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,MAAM,CAClB,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,MAAM,GAAG,OAAO,EAAM,EAC7B,YAAY,GAAE,OAAe,GAC9B,MAAM,CAOR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,MAAM,CAExE;AAqBD;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAI9C;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAElD;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,KAAK,GAAE,MAAW,GAAG,OAA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,GAAE,MAAW,GAAG,OAAO,CAEtD;AAED;;;;;;GAMG;AAEH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAiBnE;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,IAAI,OAAO,SAAS,CAU5C"}
@@ -3,35 +3,44 @@ import { format as n } from "@tolki/num";
3
3
  import r from "pluralize";
4
4
  // src/pluralizer/index.ts
5
5
  var i, a = { uncountable: /* @__PURE__ */ "audio.bison.cattle.chassis.compensation.coreopsis.data.deer.education.emoji.equipment.evidence.feedback.firmware.fish.furniture.gold.hardware.information.jedi.kin.knowledge.love.metadata.money.moose.news.nutrition.offspring.plankton.pokemon.police.rain.recommended.related.rice.series.sheep.software.species.swine.traffic.wheat".split(".") };
6
+ /* @__NO_SIDE_EFFECTS__ */
6
7
  function o(e, t = 2) {
7
8
  let n = e.split(/(?=[A-Z])/), r = String(n.pop());
8
- return n.join("") + c(r, t);
9
+ return n.join("") + /* @__PURE__ */ c(r, t);
9
10
  }
11
+ /* @__NO_SIDE_EFFECTS__ */
10
12
  function s(e, t = 2) {
11
- return o(e, t);
13
+ return /* @__PURE__ */ o(e, t);
12
14
  }
15
+ /* @__NO_SIDE_EFFECTS__ */
13
16
  function c(t, r = 2, i = !1) {
14
17
  let a = e(r) ? r : r.length;
15
18
  return (i ? n(a) + " " : "") + u(t, a);
16
19
  }
20
+ /* @__NO_SIDE_EFFECTS__ */
17
21
  function l(e, t) {
18
- return c(e, t, !0);
22
+ return /* @__PURE__ */ c(e, t, !0);
19
23
  }
20
24
  function u(e, t) {
21
- return Math.abs(t) === 1 || f(e) ? e : h(g().plural(e), e);
25
+ return Math.abs(t) === 1 || /* @__PURE__ */ f(e) ? e : /* @__PURE__ */ h(g().plural(e), e);
22
26
  }
27
+ /* @__NO_SIDE_EFFECTS__ */
23
28
  function d(e) {
24
- return h(g().singular(e), e);
29
+ return /* @__PURE__ */ h(g().singular(e), e);
25
30
  }
31
+ /* @__NO_SIDE_EFFECTS__ */
26
32
  function f(e) {
27
33
  return a.uncountable.includes(e.toLowerCase());
28
34
  }
35
+ /* @__NO_SIDE_EFFECTS__ */
29
36
  function p(e = "") {
30
37
  return g().isPlural(e);
31
38
  }
39
+ /* @__NO_SIDE_EFFECTS__ */
32
40
  function m(e = "") {
33
41
  return g().isSingular(e);
34
42
  }
43
+ /* @__NO_SIDE_EFFECTS__ */
35
44
  function h(e, t) {
36
45
  return t.toLowerCase() === t ? e.toLowerCase() : t.toUpperCase() === t ? e.toUpperCase() : t[0] && t[0].toUpperCase() + t.slice(1) === t ? (e[0] ?? "").toUpperCase() + e.slice(1) : e;
37
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/random/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,MAAM,SAAK,GAAG,MAAM,CAehD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CA4C1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/random/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH;;;;;;;;;GASG;AAEH,wBAAgB,YAAY,CAAC,MAAM,SAAK,GAAG,MAAM,CAehD;AAED;;;;;;;;;GASG;AAEH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CA4C1D"}
@@ -1,14 +1,16 @@
1
1
  import { bytesToBase64 as e } from "../base64/index.js";
2
2
  // src/random/index.ts
3
+ /* @__NO_SIDE_EFFECTS__ */
3
4
  function t(t = 16) {
4
5
  if (!Number.isFinite(t) || t <= 0) return "";
5
6
  let n = "";
6
7
  for (; n.length < t;) {
7
- let i = t - n.length, a = r(Math.ceil(i / 3) * 3), o = e(a).replace(/[/+=]/g, "");
8
+ let i = t - n.length, a = r(Math.ceil(i / 3) * 3), o = (/* @__PURE__ */ e(a)).replace(/[/+=]/g, "");
8
9
  n += o.slice(0, i);
9
10
  }
10
11
  return n;
11
12
  }
13
+ /* @__NO_SIDE_EFFECTS__ */
12
14
  function n(e, t) {
13
15
  if (!Number.isInteger(e) || !Number.isInteger(t)) throw TypeError("randomInt bounds must be safe integers");
14
16
  if (e > t) throw RangeError("randomInt min must be <= max");
@@ -17,6 +17,7 @@ export declare function substr(string: string, start: number, length?: number |
17
17
  * @param offset - The starting position for the search. If negative, it starts that many characters from the end of the string.
18
18
  * @param length - The length of the segment to search within. If omitted or null, searches to the end of the string. If negative, omits that many characters from the end.
19
19
  * @returns The number of occurrences of the substring within the specified segment.
20
+ * @throws Error for an empty needle, as PHP's substr_count() throws its ValueError
20
21
  *
21
22
  * @see https://tolki.abe.dev/strings/string-utilities-list.html#substrcount
22
23
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/replacer/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAClB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,MAAM,GAAG,IAAW,GAC7B,MAAM,CAWR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CACvB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAU,EAClB,MAAM,GAAE,MAAM,GAAG,IAAW,GAC7B,MAAM,CAgBR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CACzB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACnD,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GACvB,MAAM,CAAC;AACV,wBAAgB,aAAa,CACzB,MAAM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AAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,GAClC,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -1,14 +1,17 @@
1
1
  import { isArray as e, isObject as t, isString as n } from "@tolki/utils";
2
2
  // src/replacer/index.ts
3
+ /* @__NO_SIDE_EFFECTS__ */
3
4
  function r(e, t, n = null) {
4
5
  let r = Array.from(e), i = r.length, { start: a, end: o } = s(i, t, n);
5
6
  return a >= i || o <= a ? "" : r.slice(a, o).join("");
6
7
  }
8
+ /* @__NO_SIDE_EFFECTS__ */
7
9
  function i(e, t, n = 0, r = null) {
8
- if (t === "") return 0;
10
+ if (t === "") throw Error("substr_count(): Argument #2 ($needle) must not be empty");
9
11
  let i = Array.from(e), a = i.length, { start: o, end: l } = s(a, n, r);
10
12
  return o >= a || l <= o ? 0 : c(i.slice(o, l).join(""), t);
11
13
  }
14
+ /* @__NO_SIDE_EFFECTS__ */
12
15
  function a(r, i, a = 0, s = null) {
13
16
  let c = e(i) ? i : t(i) ? Object.values(i) : null;
14
17
  if (n(r)) {
package/dist/str.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { StringSubject, StringSubjectResult } from '@tolki/types';
1
2
  /**
2
3
  * Return the remainder of a string after the first occurrence of a given value.
3
4
  *
@@ -435,6 +436,8 @@ export declare function random(length?: number): string;
435
436
  /**
436
437
  * Set the callable that will be used to generate random strings.
437
438
  *
439
+ * @sideEffects state - sets `randomStringFactory`.
440
+ *
438
441
  * @param factory - The factory function to generate random strings
439
442
  * @returns void
440
443
  *
@@ -444,6 +447,8 @@ export declare function createRandomStringsUsing(factory: ((length: number) => s
444
447
  /**
445
448
  * Set the sequence that will be used to generate random strings.
446
449
  *
450
+ * @sideEffects state - sets `randomStringFactory`.
451
+ *
447
452
  * @param sequence - An array of strings to use in sequence
448
453
  * @param whenMissing - An optional callable to generate strings when the sequence is exhausted
449
454
  * @returns void
@@ -457,6 +462,8 @@ export declare function createRandomStringsUsingSequence(sequence: string[], whe
457
462
  /**
458
463
  * Indicate that random strings should be created normally and not using a custom factory.
459
464
  *
465
+ * @sideEffects state - clears `randomStringFactory`.
466
+ *
460
467
  * @returns void
461
468
  *
462
469
  * @see https://tolki.abe.dev/strings/string-utilities-list.html#random
@@ -504,14 +511,15 @@ export declare function toStringOr(value: unknown, fallback: string): string;
504
511
  *
505
512
  * @param search - The value or values to search for
506
513
  * @param replacement - The value or values to replace with
507
- * @param subject - The string or array of strings to perform replacements on
514
+ * @param subject - The string, or the strings in a list, object, Map, collection or iterable
508
515
  * @param caseSensitive - Whether the search should be case-sensitive (default: true)
509
- * @returns The resulting string or array of strings after replacements
516
+ * @returns The resulting string, or the strings in the subject's shape: a list for a list or iterable, an object for an
517
+ * object, a Map for a Map, and what all() holds for a collection
510
518
  * @throws TypeError when the search term is a string but the replacement is a list, mirroring PHP's str_replace
511
519
  *
512
520
  * @see https://tolki.abe.dev/strings/string-utilities-list.html#replace
513
521
  */
514
- export declare function replace<T extends string | Iterable<string>>(search: string | Iterable<string>, replacement: string | Iterable<string>, subject: T, caseSensitive?: boolean): T extends string ? string : string[];
522
+ export declare function replace<TSubject extends StringSubject<TSubject>>(search: string | Iterable<string>, replacement: string | Iterable<string>, subject: TSubject, caseSensitive?: boolean): StringSubjectResult<TSubject>;
515
523
  /**
516
524
  * Replace the first occurrence of a given value in the string.
517
525
  *
@@ -587,15 +595,14 @@ export declare function stripTags(value: string): string;
587
595
  * mirroring Laravel's behavior.
588
596
  *
589
597
  * @param search - The string or strings to remove
590
- * @param subject - The string or strings to process
598
+ * @param subject - The string, or the strings in a list, object, Map, collection or iterable
591
599
  * @param caseSensitive - Whether the search should be case-sensitive (default: true)
592
- * @returns The resulting string or array of strings after removal
600
+ * @returns The resulting string, or the strings in the subject's shape: a list for a list or iterable, an object for an
601
+ * object, a Map for a Map, and what all() holds for a collection
593
602
  *
594
603
  * @see https://tolki.abe.dev/strings/string-utilities-list.html#remove
595
604
  */
596
- export declare function remove(search: string | Iterable<string>, subject: string, caseSensitive?: boolean): string;
597
- export declare function remove(search: string | Iterable<string>, subject: Iterable<string>, caseSensitive?: boolean): string[];
598
- export declare function remove(search: string | Iterable<string>, subject: string | Iterable<string>, caseSensitive?: boolean): string | string[];
605
+ export declare function remove<TSubject extends StringSubject<TSubject>>(search: string | Iterable<string>, subject: TSubject, caseSensitive?: boolean): StringSubjectResult<TSubject>;
599
606
  /**
600
607
  * Reverse the given string.
601
608
  *
@@ -831,12 +838,16 @@ export declare function studlyCacheSize(): number;
831
838
  /**
832
839
  * Remove all strings from the casing caches.
833
840
  *
841
+ * @sideEffects state - empties the snake, camel and studly caches.
842
+ *
834
843
  * @returns void
835
844
  */
836
845
  export declare function flushCache(): void;
837
846
  /**
838
847
  * Return all factory functions to their default state.
839
848
  *
849
+ * @sideEffects state - clears the random string, ULID and UUID factories.
850
+ *
840
851
  * @returns void
841
852
  */
842
853
  export declare function resetFactoryState(): void;
package/dist/str.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"str.d.ts","sourceRoot":"","sources":["../src/str.ts"],"names":[],"mappings":"AAsCA;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAatE;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAY1E;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAQvE;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAY3E;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CACnB,OAAO,EAAE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