@stryke/string-format 0.12.28 → 0.12.30

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/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  # Changelog for Stryke - String Format
4
4
 
5
+ ## [0.12.29](https://github.com/storm-software/stryke/releases/tag/string-format%400.12.29) (12/19/2025)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **helpers** to **v0.9.31**
10
+ - Updated **types** to **v0.10.28**
11
+
12
+ ![Storm Software's logo banner](https://public.storm-cdn.com/storm-software/optimized/banner-1280x320.gif)
13
+
14
+ # Changelog for Stryke - String Format
15
+
16
+ ## [0.12.28](https://github.com/storm-software/stryke/releases/tag/string-format%400.12.28) (12/18/2025)
17
+
18
+ ### Miscellaneous
19
+
20
+ - **monorepo:** Update CDN URLs for banner assets
21
+ ([5aefe1b](https://github.com/storm-software/stryke/commit/5aefe1b))
22
+
23
+ ### Updated Dependencies
24
+
25
+ - Updated **helpers** to **v0.9.30**
26
+ - Updated **types** to **v0.10.27**
27
+
5
28
  ## [0.12.27](https://github.com/storm-software/stryke/releases/tag/string-format%400.12.27) (12/18/2025)
6
29
 
7
30
  ### Updated Dependencies
package/README.md CHANGED
@@ -28,13 +28,13 @@ This package is part of Storm Software's **💥 Stryke** monorepo. Stryke packag
28
28
 
29
29
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
30
30
 
31
- [![Version](https://img.shields.io/badge/version-0.12.17-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/stryke/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
+ [![Version](https://img.shields.io/badge/version-0.12.17-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/stryke/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
32
32
 
33
33
  > [!IMPORTANT] Important
34
34
  > This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be available through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
35
35
 
36
36
  <div align="center">
37
- <b>Be sure to ⭐ this repository on <a href="https://github.com/storm-software/stryke" target="_blank">GitHub</a> so you can keep up to date on any daily progress!</b>
37
+ <a href="https://github.com/storm-software/stryke" target="_blank"><b>Be sure to ⭐ this repository on GitHub so you can keep up to date on any daily progress!</b></a>
38
38
  </div>
39
39
 
40
40
  <br />
package/dist/escape.cjs CHANGED
@@ -1 +1 @@
1
- const e={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function t(t){return t.replace(/["&'<>]/g,t=>e[t]||``)}exports.escape=t;
1
+ const e={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function t(t){return t.replace(/["&'<>]/g,t=>e[t]||``)}function n(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}exports.escapeHtml=t,exports.escapeRegExp=n;
package/dist/escape.d.cts CHANGED
@@ -6,16 +6,31 @@
6
6
  *
7
7
  * @example
8
8
  * ```ts
9
- * escape('This is a <div> element.'); // returns 'This is a &lt;div&gt; element.'
10
- * escape('This is a "quote"'); // returns 'This is a &quot;quote&quot;'
11
- * escape("This is a 'quote'"); // returns 'This is a &#39;quote&#39;'
12
- * escape('This is a & symbol'); // returns 'This is a &amp; symbol'
9
+ * escapeHtml('This is a <div> element.'); // returns 'This is a &lt;div&gt; element.'
10
+ * escapeHtml('This is a "quote"'); // returns 'This is a &quot;quote&quot;'
11
+ * escapeHtml("This is a 'quote'"); // returns 'This is a &#39;quote&#39;'
12
+ * escapeHtml('This is a & symbol'); // returns 'This is a &amp; symbol'
13
13
  * ```
14
14
  *
15
15
  * @param str - The string to escape.
16
16
  * @returns Returns the escaped string.
17
17
  */
18
- declare function escape(str: string): string;
18
+ declare function escapeHtml(str: string): string;
19
+ /**
20
+ * Escapes RegExp special characters in the given string.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * escapeRegExp('what'); // returns 'what'
25
+ * escapeRegExp('what?'); // returns 'what\?'
26
+ * escapeRegExp('Price is $5.00'); // returns 'Price is \$5\.00'
27
+ * escapeRegExp('Use * as a wildcard'); // returns 'Use \* as a wildcard'
28
+ * ```
29
+ *
30
+ * @param str - The string to escape.
31
+ * @returns Returns the escaped string.
32
+ */
33
+ declare function escapeRegExp(str: string): string;
19
34
  //#endregion
20
- export { escape };
35
+ export { escapeHtml, escapeRegExp };
21
36
  //# sourceMappingURL=escape.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"escape.d.cts","names":[],"sources":["../src/escape.ts"],"sourcesContent":[],"mappings":";;AA0CA;;;;;;;;;;;;;;;iBAAgB,MAAA"}
1
+ {"version":3,"file":"escape.d.cts","names":[],"sources":["../src/escape.ts"],"sourcesContent":[],"mappings":";;AA0CA;AAkBA;;;;;;;;;;;;;;iBAlBgB,UAAA;;;;;;;;;;;;;;;iBAkBA,YAAA"}
package/dist/escape.d.mts CHANGED
@@ -6,16 +6,31 @@
6
6
  *
7
7
  * @example
8
8
  * ```ts
9
- * escape('This is a <div> element.'); // returns 'This is a &lt;div&gt; element.'
10
- * escape('This is a "quote"'); // returns 'This is a &quot;quote&quot;'
11
- * escape("This is a 'quote'"); // returns 'This is a &#39;quote&#39;'
12
- * escape('This is a & symbol'); // returns 'This is a &amp; symbol'
9
+ * escapeHtml('This is a <div> element.'); // returns 'This is a &lt;div&gt; element.'
10
+ * escapeHtml('This is a "quote"'); // returns 'This is a &quot;quote&quot;'
11
+ * escapeHtml("This is a 'quote'"); // returns 'This is a &#39;quote&#39;'
12
+ * escapeHtml('This is a & symbol'); // returns 'This is a &amp; symbol'
13
13
  * ```
14
14
  *
15
15
  * @param str - The string to escape.
16
16
  * @returns Returns the escaped string.
17
17
  */
18
- declare function escape(str: string): string;
18
+ declare function escapeHtml(str: string): string;
19
+ /**
20
+ * Escapes RegExp special characters in the given string.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * escapeRegExp('what'); // returns 'what'
25
+ * escapeRegExp('what?'); // returns 'what\?'
26
+ * escapeRegExp('Price is $5.00'); // returns 'Price is \$5\.00'
27
+ * escapeRegExp('Use * as a wildcard'); // returns 'Use \* as a wildcard'
28
+ * ```
29
+ *
30
+ * @param str - The string to escape.
31
+ * @returns Returns the escaped string.
32
+ */
33
+ declare function escapeRegExp(str: string): string;
19
34
  //#endregion
20
- export { escape };
35
+ export { escapeHtml, escapeRegExp };
21
36
  //# sourceMappingURL=escape.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"escape.d.mts","names":[],"sources":["../src/escape.ts"],"sourcesContent":[],"mappings":";;AA0CA;;;;;;;;;;;;;;;iBAAgB,MAAA"}
1
+ {"version":3,"file":"escape.d.mts","names":[],"sources":["../src/escape.ts"],"sourcesContent":[],"mappings":";;AA0CA;AAkBA;;;;;;;;;;;;;;iBAlBgB,UAAA;;;;;;;;;;;;;;;iBAkBA,YAAA"}
package/dist/escape.mjs CHANGED
@@ -1,2 +1,2 @@
1
- const e={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function t(t){return t.replace(/["&'<>]/g,t=>e[t]||``)}export{t as escape};
1
+ const e={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function t(t){return t.replace(/["&'<>]/g,t=>e[t]||``)}function n(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}export{t as escapeHtml,n as escapeRegExp};
2
2
  //# sourceMappingURL=escape.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"escape.mjs","names":["htmlEscapes: Record<string, string>"],"sources":["../src/escape.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nconst htmlEscapes: Record<string, string> = {\n \"&\": \"&amp;\",\n \"<\": \"&lt;\",\n \">\": \"&gt;\",\n '\"': \"&quot;\",\n \"'\": \"&#39;\"\n};\n\n/**\n * Converts the characters \"&\", \"\\<\", \"\\>\", '\"', and \"'\" in `str` to their corresponding HTML entities.\n * For example, \"\\<\" becomes \"&lt;\".\n *\n *\n * @example\n * ```ts\n * escape('This is a <div> element.'); // returns 'This is a &lt;div&gt; element.'\n * escape('This is a \"quote\"'); // returns 'This is a &quot;quote&quot;'\n * escape(\"This is a 'quote'\"); // returns 'This is a &#39;quote&#39;'\n * escape('This is a & symbol'); // returns 'This is a &amp; symbol'\n * ```\n *\n * @param str - The string to escape.\n * @returns Returns the escaped string.\n */\nexport function escape(str: string): string {\n return str.replace(/[\"&'<>]/g, match => htmlEscapes[match] || \"\");\n}\n"],"mappings":"AAkBA,MAAMA,EAAsC,CAC1C,IAAK,QACL,IAAK,OACL,IAAK,OACL,IAAK,SACL,IAAK,QACN,CAkBD,SAAgB,EAAO,EAAqB,CAC1C,OAAO,EAAI,QAAQ,WAAY,GAAS,EAAY,IAAU,GAAG"}
1
+ {"version":3,"file":"escape.mjs","names":["htmlEscapes: Record<string, string>"],"sources":["../src/escape.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nconst htmlEscapes: Record<string, string> = {\n \"&\": \"&amp;\",\n \"<\": \"&lt;\",\n \">\": \"&gt;\",\n '\"': \"&quot;\",\n \"'\": \"&#39;\"\n};\n\n/**\n * Converts the characters \"&\", \"\\<\", \"\\>\", '\"', and \"'\" in `str` to their corresponding HTML entities.\n * For example, \"\\<\" becomes \"&lt;\".\n *\n *\n * @example\n * ```ts\n * escapeHtml('This is a <div> element.'); // returns 'This is a &lt;div&gt; element.'\n * escapeHtml('This is a \"quote\"'); // returns 'This is a &quot;quote&quot;'\n * escapeHtml(\"This is a 'quote'\"); // returns 'This is a &#39;quote&#39;'\n * escapeHtml('This is a & symbol'); // returns 'This is a &amp; symbol'\n * ```\n *\n * @param str - The string to escape.\n * @returns Returns the escaped string.\n */\nexport function escapeHtml(str: string): string {\n return str.replace(/[\"&'<>]/g, match => htmlEscapes[match] || \"\");\n}\n\n/**\n * Escapes RegExp special characters in the given string.\n *\n * @example\n * ```ts\n * escapeRegExp('what'); // returns 'what'\n * escapeRegExp('what?'); // returns 'what\\?'\n * escapeRegExp('Price is $5.00'); // returns 'Price is \\$5\\.00'\n * escapeRegExp('Use * as a wildcard'); // returns 'Use \\* as a wildcard'\n * ```\n *\n * @param str - The string to escape.\n * @returns Returns the escaped string.\n */\nexport function escapeRegExp(str: string) {\n // Escape characters with special meaning either inside or outside character sets.\n // Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when\n // the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n return str.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\");\n}\n"],"mappings":"AAkBA,MAAMA,EAAsC,CAC1C,IAAK,QACL,IAAK,OACL,IAAK,OACL,IAAK,SACL,IAAK,QACN,CAkBD,SAAgB,EAAW,EAAqB,CAC9C,OAAO,EAAI,QAAQ,WAAY,GAAS,EAAY,IAAU,GAAG,CAiBnE,SAAgB,EAAa,EAAa,CAIxC,OAAO,EAAI,QAAQ,sBAAuB,OAAO,CAAC,QAAQ,KAAM,QAAQ"}
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./acronyms.cjs`),t=require(`./articles.cjs`),n=require(`./get-words.cjs`),r=require(`./camel-case.cjs`),i=require(`./combine.cjs`),a=require(`./conjunctions.cjs`),o=require(`./upper-case-first.cjs`),s=require(`./snake-case.cjs`),c=require(`./constant-case.cjs`),l=require(`./deburr.cjs`),u=require(`./decamelize.cjs`),d=require(`./escape.cjs`),f=require(`./prepositions.cjs`),p=require(`./special-cases.cjs`),m=require(`./format-special-cases.cjs`),h=require(`./kebab-case.cjs`),g=require(`./lower-case-first.cjs`),_=require(`./normalize-email.cjs`),v=require(`./package.cjs`),y=require(`./pad.cjs`),b=require(`./pascal-case.cjs`),x=require(`./period-split.cjs`),S=require(`./pretty-bytes.cjs`),C=require(`./start-case.cjs`),w=require(`./strip-indents.cjs`),T=require(`./title-case.cjs`),E=require(`./unescape.cjs`);exports.ACRONYMS=e.ACRONYMS,exports.ACRONYM_DESCRIPTION=e.ACRONYM_DESCRIPTION,exports.ACRONYM_DISPLAY=e.ACRONYM_DISPLAY,exports.ACRONYM_LIST=e.ACRONYM_LIST,exports.ARTICLES=t.ARTICLES,exports.CASE_SPLIT_PATTERN=n.CASE_SPLIT_PATTERN,exports.CONJUNCTIONS=a.CONJUNCTIONS,exports.PREPOSITIONS=f.PREPOSITIONS,exports.RELAXED_SPLIT_PATTERN=n.RELAXED_SPLIT_PATTERN,exports.SPECIAL_CASES=p.SPECIAL_CASES,exports.camelCase=r.camelCase,exports.combine=i.combine,exports.constantCase=c.constantCase,exports.deburr=l.deburr,exports.decamelize=u.decamelize,exports.escape=d.escape,exports.formatSpecialCases=m.formatSpecialCases,exports.getPackageName=v.getPackageName,exports.getPackageVersion=v.getPackageVersion,exports.getWords=n.getWords,exports.hasPackageVersion=v.hasPackageVersion,exports.isCamelCase=r.isCamelCase,exports.isConstantCase=c.isConstantCase,exports.isKebabCase=h.isKebabCase,exports.isPascalCase=b.isPascalCase,exports.isPeriodSplit=x.isPeriodSplit,exports.isSnakeCase=s.isSnakeCase,exports.isStartCase=C.isStartCase,exports.kebabCase=h.kebabCase,exports.lowerCaseFirst=g.lowerCaseFirst,exports.normalizeEmail=_.normalizeEmail,exports.pad=y.pad,exports.pascalCase=b.pascalCase,exports.periodSplit=x.periodSplit,exports.prettyBytes=S.prettyBytes,exports.removePackageVersion=v.removePackageVersion,exports.snakeCase=s.snakeCase,exports.startCase=C.startCase,exports.stripIndents=w.stripIndents,exports.titleCase=T.titleCase,exports.toLocaleString=S.toLocaleString,exports.unescape=E.unescape,exports.upperCaseFirst=o.upperCaseFirst;
1
+ const e=require(`./acronyms.cjs`),t=require(`./articles.cjs`),n=require(`./get-words.cjs`),r=require(`./camel-case.cjs`),i=require(`./combine.cjs`),a=require(`./conjunctions.cjs`),o=require(`./upper-case-first.cjs`),s=require(`./snake-case.cjs`),c=require(`./constant-case.cjs`),l=require(`./deburr.cjs`),u=require(`./decamelize.cjs`),d=require(`./escape.cjs`),f=require(`./prepositions.cjs`),p=require(`./special-cases.cjs`),m=require(`./format-special-cases.cjs`),h=require(`./kebab-case.cjs`),g=require(`./lower-case-first.cjs`),_=require(`./normalize-email.cjs`),v=require(`./package.cjs`),y=require(`./pad.cjs`),b=require(`./pascal-case.cjs`),x=require(`./period-split.cjs`),S=require(`./pretty-bytes.cjs`),C=require(`./start-case.cjs`),w=require(`./strip-indents.cjs`),T=require(`./title-case.cjs`),E=require(`./unescape.cjs`);exports.ACRONYMS=e.ACRONYMS,exports.ACRONYM_DESCRIPTION=e.ACRONYM_DESCRIPTION,exports.ACRONYM_DISPLAY=e.ACRONYM_DISPLAY,exports.ACRONYM_LIST=e.ACRONYM_LIST,exports.ARTICLES=t.ARTICLES,exports.CASE_SPLIT_PATTERN=n.CASE_SPLIT_PATTERN,exports.CONJUNCTIONS=a.CONJUNCTIONS,exports.PREPOSITIONS=f.PREPOSITIONS,exports.RELAXED_SPLIT_PATTERN=n.RELAXED_SPLIT_PATTERN,exports.SPECIAL_CASES=p.SPECIAL_CASES,exports.camelCase=r.camelCase,exports.combine=i.combine,exports.constantCase=c.constantCase,exports.deburr=l.deburr,exports.decamelize=u.decamelize,exports.escapeHtml=d.escapeHtml,exports.escapeRegExp=d.escapeRegExp,exports.formatSpecialCases=m.formatSpecialCases,exports.getPackageName=v.getPackageName,exports.getPackageVersion=v.getPackageVersion,exports.getWords=n.getWords,exports.hasPackageVersion=v.hasPackageVersion,exports.isCamelCase=r.isCamelCase,exports.isConstantCase=c.isConstantCase,exports.isKebabCase=h.isKebabCase,exports.isPascalCase=b.isPascalCase,exports.isPeriodSplit=x.isPeriodSplit,exports.isSnakeCase=s.isSnakeCase,exports.isStartCase=C.isStartCase,exports.kebabCase=h.kebabCase,exports.lowerCaseFirst=g.lowerCaseFirst,exports.normalizeEmail=_.normalizeEmail,exports.pad=y.pad,exports.pascalCase=b.pascalCase,exports.periodSplit=x.periodSplit,exports.prettyBytes=S.prettyBytes,exports.removePackageVersion=v.removePackageVersion,exports.snakeCase=s.snakeCase,exports.startCase=C.startCase,exports.stripIndents=w.stripIndents,exports.titleCase=T.titleCase,exports.toLocaleString=S.toLocaleString,exports.unescape=E.unescape,exports.upperCaseFirst=o.upperCaseFirst;
package/dist/index.d.cts CHANGED
@@ -6,7 +6,7 @@ import { CONJUNCTIONS } from "./conjunctions.cjs";
6
6
  import { constantCase, isConstantCase } from "./constant-case.cjs";
7
7
  import { deburr } from "./deburr.cjs";
8
8
  import { decamelize } from "./decamelize.cjs";
9
- import { escape } from "./escape.cjs";
9
+ import { escapeHtml, escapeRegExp } from "./escape.cjs";
10
10
  import { FormatSpecialCasesOptions, formatSpecialCases } from "./format-special-cases.cjs";
11
11
  import { CASE_SPLIT_PATTERN, GetWordsOptions, RELAXED_SPLIT_PATTERN, getWords } from "./get-words.cjs";
12
12
  import { isKebabCase, kebabCase } from "./kebab-case.cjs";
@@ -25,4 +25,4 @@ import { stripIndents } from "./strip-indents.cjs";
25
25
  import { titleCase } from "./title-case.cjs";
26
26
  import { unescape } from "./unescape.cjs";
27
27
  import { upperCaseFirst } from "./upper-case-first.cjs";
28
- export { ACRONYMS, ACRONYM_DESCRIPTION, ACRONYM_DISPLAY, ACRONYM_LIST, ARTICLES, CASE_SPLIT_PATTERN, CONJUNCTIONS, FormatSpecialCasesOptions, GetWordsOptions, Options, PREPOSITIONS, RELAXED_SPLIT_PATTERN, SPECIAL_CASES, SnakeCaseOptions, camelCase, combine, constantCase, deburr, decamelize, escape, formatSpecialCases, getPackageName, getPackageVersion, getWords, hasPackageVersion, isCamelCase, isConstantCase, isKebabCase, isPascalCase, isPeriodSplit, isSnakeCase, isStartCase, kebabCase, lowerCaseFirst, normalizeEmail, pad, pascalCase, periodSplit, prettyBytes, removePackageVersion, snakeCase, startCase, stripIndents, titleCase, toLocaleString, unescape, upperCaseFirst };
28
+ export { ACRONYMS, ACRONYM_DESCRIPTION, ACRONYM_DISPLAY, ACRONYM_LIST, ARTICLES, CASE_SPLIT_PATTERN, CONJUNCTIONS, FormatSpecialCasesOptions, GetWordsOptions, Options, PREPOSITIONS, RELAXED_SPLIT_PATTERN, SPECIAL_CASES, SnakeCaseOptions, camelCase, combine, constantCase, deburr, decamelize, escapeHtml, escapeRegExp, formatSpecialCases, getPackageName, getPackageVersion, getWords, hasPackageVersion, isCamelCase, isConstantCase, isKebabCase, isPascalCase, isPeriodSplit, isSnakeCase, isStartCase, kebabCase, lowerCaseFirst, normalizeEmail, pad, pascalCase, periodSplit, prettyBytes, removePackageVersion, snakeCase, startCase, stripIndents, titleCase, toLocaleString, unescape, upperCaseFirst };
package/dist/index.d.mts CHANGED
@@ -6,7 +6,7 @@ import { CONJUNCTIONS } from "./conjunctions.mjs";
6
6
  import { constantCase, isConstantCase } from "./constant-case.mjs";
7
7
  import { deburr } from "./deburr.mjs";
8
8
  import { decamelize } from "./decamelize.mjs";
9
- import { escape } from "./escape.mjs";
9
+ import { escapeHtml, escapeRegExp } from "./escape.mjs";
10
10
  import { FormatSpecialCasesOptions, formatSpecialCases } from "./format-special-cases.mjs";
11
11
  import { CASE_SPLIT_PATTERN, GetWordsOptions, RELAXED_SPLIT_PATTERN, getWords } from "./get-words.mjs";
12
12
  import { isKebabCase, kebabCase } from "./kebab-case.mjs";
@@ -25,4 +25,4 @@ import { stripIndents } from "./strip-indents.mjs";
25
25
  import { titleCase } from "./title-case.mjs";
26
26
  import { unescape } from "./unescape.mjs";
27
27
  import { upperCaseFirst } from "./upper-case-first.mjs";
28
- export { ACRONYMS, ACRONYM_DESCRIPTION, ACRONYM_DISPLAY, ACRONYM_LIST, ARTICLES, CASE_SPLIT_PATTERN, CONJUNCTIONS, FormatSpecialCasesOptions, GetWordsOptions, Options, PREPOSITIONS, RELAXED_SPLIT_PATTERN, SPECIAL_CASES, SnakeCaseOptions, camelCase, combine, constantCase, deburr, decamelize, escape, formatSpecialCases, getPackageName, getPackageVersion, getWords, hasPackageVersion, isCamelCase, isConstantCase, isKebabCase, isPascalCase, isPeriodSplit, isSnakeCase, isStartCase, kebabCase, lowerCaseFirst, normalizeEmail, pad, pascalCase, periodSplit, prettyBytes, removePackageVersion, snakeCase, startCase, stripIndents, titleCase, toLocaleString, unescape, upperCaseFirst };
28
+ export { ACRONYMS, ACRONYM_DESCRIPTION, ACRONYM_DISPLAY, ACRONYM_LIST, ARTICLES, CASE_SPLIT_PATTERN, CONJUNCTIONS, FormatSpecialCasesOptions, GetWordsOptions, Options, PREPOSITIONS, RELAXED_SPLIT_PATTERN, SPECIAL_CASES, SnakeCaseOptions, camelCase, combine, constantCase, deburr, decamelize, escapeHtml, escapeRegExp, formatSpecialCases, getPackageName, getPackageVersion, getWords, hasPackageVersion, isCamelCase, isConstantCase, isKebabCase, isPascalCase, isPeriodSplit, isSnakeCase, isStartCase, kebabCase, lowerCaseFirst, normalizeEmail, pad, pascalCase, periodSplit, prettyBytes, removePackageVersion, snakeCase, startCase, stripIndents, titleCase, toLocaleString, unescape, upperCaseFirst };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{ACRONYMS as e,ACRONYM_DESCRIPTION as t,ACRONYM_DISPLAY as n,ACRONYM_LIST as r}from"./acronyms.mjs";import{ARTICLES as i}from"./articles.mjs";import{CASE_SPLIT_PATTERN as a,RELAXED_SPLIT_PATTERN as o,getWords as s}from"./get-words.mjs";import{camelCase as c,isCamelCase as l}from"./camel-case.mjs";import{combine as u}from"./combine.mjs";import{CONJUNCTIONS as d}from"./conjunctions.mjs";import{upperCaseFirst as f}from"./upper-case-first.mjs";import{isSnakeCase as p,snakeCase as m}from"./snake-case.mjs";import{constantCase as h,isConstantCase as g}from"./constant-case.mjs";import{deburr as _}from"./deburr.mjs";import{decamelize as v}from"./decamelize.mjs";import{escape as y}from"./escape.mjs";import{PREPOSITIONS as b}from"./prepositions.mjs";import{SPECIAL_CASES as x}from"./special-cases.mjs";import{formatSpecialCases as S}from"./format-special-cases.mjs";import{isKebabCase as C,kebabCase as w}from"./kebab-case.mjs";import{lowerCaseFirst as T}from"./lower-case-first.mjs";import{normalizeEmail as E}from"./normalize-email.mjs";import{getPackageName as D,getPackageVersion as O,hasPackageVersion as k,removePackageVersion as A}from"./package.mjs";import{pad as j}from"./pad.mjs";import{isPascalCase as M,pascalCase as N}from"./pascal-case.mjs";import{isPeriodSplit as P,periodSplit as F}from"./period-split.mjs";import{prettyBytes as I,toLocaleString as L}from"./pretty-bytes.mjs";import{isStartCase as R,startCase as z}from"./start-case.mjs";import{stripIndents as B}from"./strip-indents.mjs";import{titleCase as V}from"./title-case.mjs";import{unescape as H}from"./unescape.mjs";export{e as ACRONYMS,t as ACRONYM_DESCRIPTION,n as ACRONYM_DISPLAY,r as ACRONYM_LIST,i as ARTICLES,a as CASE_SPLIT_PATTERN,d as CONJUNCTIONS,b as PREPOSITIONS,o as RELAXED_SPLIT_PATTERN,x as SPECIAL_CASES,c as camelCase,u as combine,h as constantCase,_ as deburr,v as decamelize,y as escape,S as formatSpecialCases,D as getPackageName,O as getPackageVersion,s as getWords,k as hasPackageVersion,l as isCamelCase,g as isConstantCase,C as isKebabCase,M as isPascalCase,P as isPeriodSplit,p as isSnakeCase,R as isStartCase,w as kebabCase,T as lowerCaseFirst,E as normalizeEmail,j as pad,N as pascalCase,F as periodSplit,I as prettyBytes,A as removePackageVersion,m as snakeCase,z as startCase,B as stripIndents,V as titleCase,L as toLocaleString,H as unescape,f as upperCaseFirst};
1
+ import{ACRONYMS as e,ACRONYM_DESCRIPTION as t,ACRONYM_DISPLAY as n,ACRONYM_LIST as r}from"./acronyms.mjs";import{ARTICLES as i}from"./articles.mjs";import{CASE_SPLIT_PATTERN as a,RELAXED_SPLIT_PATTERN as o,getWords as s}from"./get-words.mjs";import{camelCase as c,isCamelCase as l}from"./camel-case.mjs";import{combine as u}from"./combine.mjs";import{CONJUNCTIONS as d}from"./conjunctions.mjs";import{upperCaseFirst as f}from"./upper-case-first.mjs";import{isSnakeCase as p,snakeCase as m}from"./snake-case.mjs";import{constantCase as h,isConstantCase as g}from"./constant-case.mjs";import{deburr as _}from"./deburr.mjs";import{decamelize as v}from"./decamelize.mjs";import{escapeHtml as y,escapeRegExp as b}from"./escape.mjs";import{PREPOSITIONS as x}from"./prepositions.mjs";import{SPECIAL_CASES as S}from"./special-cases.mjs";import{formatSpecialCases as C}from"./format-special-cases.mjs";import{isKebabCase as w,kebabCase as T}from"./kebab-case.mjs";import{lowerCaseFirst as E}from"./lower-case-first.mjs";import{normalizeEmail as D}from"./normalize-email.mjs";import{getPackageName as O,getPackageVersion as k,hasPackageVersion as A,removePackageVersion as j}from"./package.mjs";import{pad as M}from"./pad.mjs";import{isPascalCase as N,pascalCase as P}from"./pascal-case.mjs";import{isPeriodSplit as F,periodSplit as I}from"./period-split.mjs";import{prettyBytes as L,toLocaleString as R}from"./pretty-bytes.mjs";import{isStartCase as z,startCase as B}from"./start-case.mjs";import{stripIndents as V}from"./strip-indents.mjs";import{titleCase as H}from"./title-case.mjs";import{unescape as U}from"./unescape.mjs";export{e as ACRONYMS,t as ACRONYM_DESCRIPTION,n as ACRONYM_DISPLAY,r as ACRONYM_LIST,i as ARTICLES,a as CASE_SPLIT_PATTERN,d as CONJUNCTIONS,x as PREPOSITIONS,o as RELAXED_SPLIT_PATTERN,S as SPECIAL_CASES,c as camelCase,u as combine,h as constantCase,_ as deburr,v as decamelize,y as escapeHtml,b as escapeRegExp,C as formatSpecialCases,O as getPackageName,k as getPackageVersion,s as getWords,A as hasPackageVersion,l as isCamelCase,g as isConstantCase,w as isKebabCase,N as isPascalCase,F as isPeriodSplit,p as isSnakeCase,z as isStartCase,T as kebabCase,E as lowerCaseFirst,D as normalizeEmail,M as pad,P as pascalCase,I as periodSplit,L as prettyBytes,j as removePackageVersion,m as snakeCase,B as startCase,V as stripIndents,H as titleCase,R as toLocaleString,U as unescape,f as upperCaseFirst};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/string-format",
3
- "version": "0.12.28",
3
+ "version": "0.12.30",
4
4
  "type": "module",
5
5
  "description": "A package containing utility functions to transform strings into various formats.",
6
6
  "repository": {
@@ -123,5 +123,5 @@
123
123
  "types": "./dist/index.d.cts",
124
124
  "devDependencies": { "tsdown": "^0.17.2" },
125
125
  "publishConfig": { "access": "public" },
126
- "gitHead": "ed86f49867133045cf1eb4626ca513043221d0af"
126
+ "gitHead": "b8d274b5ccadc794cda7e8f417b68e640fa97641"
127
127
  }