@stryke/string-format 0.12.29 → 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 +11 -4
- package/README.md +2 -2
- package/dist/escape.cjs +1 -1
- package/dist/escape.d.cts +21 -6
- package/dist/escape.d.cts.map +1 -1
- package/dist/escape.d.mts +21 -6
- package/dist/escape.d.mts.map +1 -1
- package/dist/escape.mjs +1 -1
- package/dist/escape.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Changelog for Stryke - String Format
|
|
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
|
+
|
|
1
12
|

|
|
2
13
|
|
|
3
14
|
# Changelog for Stryke - String Format
|
|
@@ -14,10 +25,6 @@
|
|
|
14
25
|
- Updated **helpers** to **v0.9.30**
|
|
15
26
|
- Updated **types** to **v0.10.27**
|
|
16
27
|
|
|
17
|
-

|
|
18
|
-
|
|
19
|
-
# Changelog for Stryke - String Format
|
|
20
|
-
|
|
21
28
|
## [0.12.27](https://github.com/storm-software/stryke/releases/tag/string-format%400.12.27) (12/18/2025)
|
|
22
29
|
|
|
23
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
|
-
[](https://prettier.io/) [](https://prettier.io/) [](http://commitizen.github.io/cz-cli/)  
|
|
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
|
-
<
|
|
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={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function t(t){return t.replace(/["&'<>]/g,t=>e[t]||``)}exports.
|
|
1
|
+
const e={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};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
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* escapeHtml('This is a <div> element.'); // returns 'This is a <div> element.'
|
|
10
|
+
* escapeHtml('This is a "quote"'); // returns 'This is a "quote"'
|
|
11
|
+
* escapeHtml("This is a 'quote'"); // returns 'This is a 'quote''
|
|
12
|
+
* escapeHtml('This is a & symbol'); // returns 'This is a & 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
|
|
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 {
|
|
35
|
+
export { escapeHtml, escapeRegExp };
|
|
21
36
|
//# sourceMappingURL=escape.d.cts.map
|
package/dist/escape.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escape.d.cts","names":[],"sources":["../src/escape.ts"],"sourcesContent":[],"mappings":";;AA0CA;;;;;;;;;;;;;;;
|
|
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
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* escapeHtml('This is a <div> element.'); // returns 'This is a <div> element.'
|
|
10
|
+
* escapeHtml('This is a "quote"'); // returns 'This is a "quote"'
|
|
11
|
+
* escapeHtml("This is a 'quote'"); // returns 'This is a 'quote''
|
|
12
|
+
* escapeHtml('This is a & symbol'); // returns 'This is a & 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
|
|
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 {
|
|
35
|
+
export { escapeHtml, escapeRegExp };
|
|
21
36
|
//# sourceMappingURL=escape.d.mts.map
|
package/dist/escape.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escape.d.mts","names":[],"sources":["../src/escape.ts"],"sourcesContent":[],"mappings":";;AA0CA;;;;;;;;;;;;;;;
|
|
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={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function t(t){return t.replace(/["&'<>]/g,t=>e[t]||``)}export{t as
|
|
1
|
+
const e={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};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
|
package/dist/escape.mjs.map
CHANGED
|
@@ -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 \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n '\"': \""\",\n \"'\": \"'\"\n};\n\n/**\n * Converts the characters \"&\", \"\\<\", \"\\>\", '\"', and \"'\" in `str` to their corresponding HTML entities.\n * For example, \"\\<\" becomes \"<\".\n *\n *\n * @example\n * ```ts\n *
|
|
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 \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n '\"': \""\",\n \"'\": \"'\"\n};\n\n/**\n * Converts the characters \"&\", \"\\<\", \"\\>\", '\"', and \"'\" in `str` to their corresponding HTML entities.\n * For example, \"\\<\" becomes \"<\".\n *\n *\n * @example\n * ```ts\n * escapeHtml('This is a <div> element.'); // returns 'This is a <div> element.'\n * escapeHtml('This is a \"quote\"'); // returns 'This is a "quote"'\n * escapeHtml(\"This is a 'quote'\"); // returns 'This is a 'quote''\n * escapeHtml('This is a & symbol'); // returns 'This is a & 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.
|
|
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 {
|
|
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,
|
|
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 {
|
|
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,
|
|
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{
|
|
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.
|
|
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": "
|
|
126
|
+
"gitHead": "b8d274b5ccadc794cda7e8f417b68e640fa97641"
|
|
127
127
|
}
|