@stryke/string-format 0.12.13 → 0.12.20
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 +485 -0
- package/README.md +19 -9
- package/dist/acronyms-Clf_sxuQ.d.mts +17 -0
- package/dist/acronyms-Clf_sxuQ.d.mts.map +1 -0
- package/dist/acronyms-CqHURYjd.mjs +2 -0
- package/dist/acronyms-CqHURYjd.mjs.map +1 -0
- package/dist/acronyms-D4QIJv0a.d.cts +17 -0
- package/dist/acronyms-D4QIJv0a.d.cts.map +1 -0
- package/dist/acronyms-DiyHB1FK.cjs +1 -0
- package/dist/acronyms.cjs +1 -923
- package/dist/acronyms.d.cts +2 -0
- package/dist/acronyms.d.mts +2 -0
- package/dist/acronyms.mjs +1 -1
- package/dist/articles-Cla7DH2n.d.mts +5 -0
- package/dist/articles-Cla7DH2n.d.mts.map +1 -0
- package/dist/articles-D9xvmhoM.cjs +1 -0
- package/dist/articles-DzjpMs-D.d.cts +5 -0
- package/dist/articles-DzjpMs-D.d.cts.map +1 -0
- package/dist/articles-Dzsbtfwj.mjs +2 -0
- package/dist/articles-Dzsbtfwj.mjs.map +1 -0
- package/dist/articles.cjs +1 -7
- package/dist/articles.d.cts +2 -0
- package/dist/articles.d.mts +2 -0
- package/dist/articles.mjs +1 -1
- package/dist/base-BHbehXQX.mjs +2 -0
- package/dist/base-BHbehXQX.mjs.map +1 -0
- package/dist/base-DdjslzIj.cjs +1 -0
- package/dist/{camel-case.d.ts → camel-case-BjbgGrxH.d.mts} +6 -2
- package/dist/camel-case-BjbgGrxH.d.mts.map +1 -0
- package/dist/camel-case-C05avVyv.cjs +1 -0
- package/dist/camel-case-CZhC2BRe.d.cts +24 -0
- package/dist/camel-case-CZhC2BRe.d.cts.map +1 -0
- package/dist/camel-case-GuOpCLmz.mjs +2 -0
- package/dist/camel-case-GuOpCLmz.mjs.map +1 -0
- package/dist/camel-case.cjs +1 -15
- package/dist/camel-case.d.cts +2 -0
- package/dist/camel-case.d.mts +2 -0
- package/dist/camel-case.mjs +1 -1
- package/dist/combine-CAxhmyey.mjs +2 -0
- package/dist/combine-CAxhmyey.mjs.map +1 -0
- package/dist/combine-DZZlBlm_.d.cts +12 -0
- package/dist/combine-DZZlBlm_.d.cts.map +1 -0
- package/dist/combine-PAQYt88F.cjs +1 -0
- package/dist/combine-g1cpXeuj.d.mts +12 -0
- package/dist/combine-g1cpXeuj.d.mts.map +1 -0
- package/dist/combine.cjs +1 -9
- package/dist/combine.d.cts +2 -0
- package/dist/combine.d.mts +2 -0
- package/dist/combine.mjs +1 -1
- package/dist/conjunctions-B7prVj02.d.mts +5 -0
- package/dist/conjunctions-B7prVj02.d.mts.map +1 -0
- package/dist/conjunctions-CWyOkdmq.mjs +2 -0
- package/dist/conjunctions-CWyOkdmq.mjs.map +1 -0
- package/dist/conjunctions-CaM47PDl.cjs +1 -0
- package/dist/conjunctions-Chb943kG.d.cts +5 -0
- package/dist/conjunctions-Chb943kG.d.cts.map +1 -0
- package/dist/conjunctions.cjs +1 -7
- package/dist/conjunctions.d.cts +2 -0
- package/dist/conjunctions.d.mts +2 -0
- package/dist/conjunctions.mjs +1 -1
- package/dist/constant-case-B0oTEBjC.cjs +1 -0
- package/dist/constant-case-Cn0OS_D5.mjs +2 -0
- package/dist/constant-case-Cn0OS_D5.mjs.map +1 -0
- package/dist/{constant-case.d.ts → constant-case-m6XLIpEZ.d.mts} +6 -2
- package/dist/constant-case-m6XLIpEZ.d.mts.map +1 -0
- package/dist/constant-case-w4mBqXc4.d.cts +24 -0
- package/dist/constant-case-w4mBqXc4.d.cts.map +1 -0
- package/dist/constant-case.cjs +1 -15
- package/dist/constant-case.d.cts +2 -0
- package/dist/constant-case.d.mts +2 -0
- package/dist/constant-case.mjs +1 -1
- package/dist/{deburr.d.ts → deburr-Bc41oTWI.d.mts} +5 -1
- package/dist/deburr-Bc41oTWI.d.mts.map +1 -0
- package/dist/deburr-Brmq0CIE.d.cts +24 -0
- package/dist/deburr-Brmq0CIE.d.cts.map +1 -0
- package/dist/deburr-Ct9BIF1O.mjs +2 -0
- package/dist/deburr-Ct9BIF1O.mjs.map +1 -0
- package/dist/deburr-ulWvJuGq.cjs +1 -0
- package/dist/deburr.cjs +1 -10
- package/dist/deburr.d.cts +2 -0
- package/dist/deburr.d.mts +2 -0
- package/dist/deburr.mjs +1 -1
- package/dist/decamelize-CO4-wIwF.cjs +1 -0
- package/dist/{decamelize.d.ts → decamelize-CXxqH9_o.d.mts} +5 -1
- package/dist/decamelize-CXxqH9_o.d.mts.map +1 -0
- package/dist/decamelize-CuI8547m.mjs +2 -0
- package/dist/decamelize-CuI8547m.mjs.map +1 -0
- package/dist/decamelize-esVsRIRg.d.cts +11 -0
- package/dist/decamelize-esVsRIRg.d.cts.map +1 -0
- package/dist/decamelize.cjs +1 -9
- package/dist/decamelize.d.cts +2 -0
- package/dist/decamelize.d.mts +2 -0
- package/dist/decamelize.mjs +1 -1
- package/dist/{escape.d.ts → escape-C1LTGJQ1.d.cts} +5 -1
- package/dist/escape-C1LTGJQ1.d.cts.map +1 -0
- package/dist/escape-C44shywT.d.mts +21 -0
- package/dist/escape-C44shywT.d.mts.map +1 -0
- package/dist/escape-CRoXgV4v.cjs +1 -0
- package/dist/escape-CydJ1P9x.mjs +2 -0
- package/dist/escape-CydJ1P9x.mjs.map +1 -0
- package/dist/escape.cjs +1 -16
- package/dist/escape.d.cts +2 -0
- package/dist/escape.d.mts +2 -0
- package/dist/escape.mjs +1 -1
- package/dist/format-special-cases-CuctZ76T.cjs +1 -0
- package/dist/format-special-cases-DLTiwMAS.d.mts +23 -0
- package/dist/format-special-cases-DLTiwMAS.d.mts.map +1 -0
- package/dist/format-special-cases-Db69zjlV.d.cts +23 -0
- package/dist/format-special-cases-Db69zjlV.d.cts.map +1 -0
- package/dist/format-special-cases-F9O32YcB.mjs +2 -0
- package/dist/format-special-cases-F9O32YcB.mjs.map +1 -0
- package/dist/format-special-cases.cjs +1 -17
- package/dist/format-special-cases.d.cts +2 -0
- package/dist/format-special-cases.d.mts +2 -0
- package/dist/format-special-cases.mjs +1 -1
- package/dist/{get-words.d.ts → get-words-Cdgu0ngS.d.cts} +16 -12
- package/dist/get-words-Cdgu0ngS.d.cts.map +1 -0
- package/dist/get-words-De8YIU0J.d.mts +47 -0
- package/dist/get-words-De8YIU0J.d.mts.map +1 -0
- package/dist/get-words-IF97Rpfr.cjs +1 -0
- package/dist/get-words-vlruPM_Q.mjs +2 -0
- package/dist/get-words-vlruPM_Q.mjs.map +1 -0
- package/dist/get-words.cjs +1 -13
- package/dist/get-words.d.cts +2 -0
- package/dist/get-words.d.mts +2 -0
- package/dist/get-words.mjs +1 -1
- package/dist/index.cjs +1 -302
- package/dist/index.d.cts +28 -0
- package/dist/index.d.mts +28 -0
- package/dist/index.mjs +1 -1
- package/dist/kebab-case-CT-vTX1k.mjs +2 -0
- package/dist/kebab-case-CT-vTX1k.mjs.map +1 -0
- package/dist/kebab-case-P86ZRHrn.cjs +1 -0
- package/dist/{kebab-case.d.ts → kebab-case-j61N8v5l.d.cts} +6 -2
- package/dist/kebab-case-j61N8v5l.d.cts.map +1 -0
- package/dist/kebab-case-pl--iN9P.d.mts +24 -0
- package/dist/kebab-case-pl--iN9P.d.mts.map +1 -0
- package/dist/kebab-case.cjs +1 -16
- package/dist/kebab-case.d.cts +2 -0
- package/dist/kebab-case.d.mts +2 -0
- package/dist/kebab-case.mjs +1 -1
- package/dist/lower-case-first-BSnwPTwZ.d.cts +14 -0
- package/dist/lower-case-first-BSnwPTwZ.d.cts.map +1 -0
- package/dist/lower-case-first-CES45S2D.cjs +1 -0
- package/dist/lower-case-first-CVRU3SQT.mjs +2 -0
- package/dist/lower-case-first-CVRU3SQT.mjs.map +1 -0
- package/dist/lower-case-first-_dvT-gH7.d.mts +14 -0
- package/dist/lower-case-first-_dvT-gH7.d.mts.map +1 -0
- package/dist/lower-case-first.cjs +1 -9
- package/dist/lower-case-first.d.cts +2 -0
- package/dist/lower-case-first.d.mts +2 -0
- package/dist/lower-case-first.mjs +1 -1
- package/dist/{normalize-email.d.ts → normalize-email-BGivsxZI.d.cts} +5 -1
- package/dist/normalize-email-BGivsxZI.d.cts.map +1 -0
- package/dist/normalize-email-DRezSgOV.cjs +1 -0
- package/dist/normalize-email-bfhnC3KA.d.mts +20 -0
- package/dist/normalize-email-bfhnC3KA.d.mts.map +1 -0
- package/dist/normalize-email-us4o_m-8.mjs +2 -0
- package/dist/normalize-email-us4o_m-8.mjs.map +1 -0
- package/dist/normalize-email.cjs +1 -19
- package/dist/normalize-email.d.cts +2 -0
- package/dist/normalize-email.d.mts +2 -0
- package/dist/normalize-email.mjs +1 -1
- package/dist/package-BSidq8g2.mjs +2 -0
- package/dist/package-BSidq8g2.mjs.map +1 -0
- package/dist/package-Cw2gkIBD.cjs +1 -0
- package/dist/{package.d.ts → package-dwE_olpo.d.mts} +8 -4
- package/dist/package-dwE_olpo.d.mts.map +1 -0
- package/dist/package-o2QJauB-.d.cts +112 -0
- package/dist/package-o2QJauB-.d.cts.map +1 -0
- package/dist/package.cjs +1 -21
- package/dist/package.d.cts +2 -0
- package/dist/package.d.mts +2 -0
- package/dist/package.mjs +1 -1
- package/dist/pad-7O_mbugy.cjs +1 -0
- package/dist/pad-B___Grg_.mjs +2 -0
- package/dist/pad-B___Grg_.mjs.map +1 -0
- package/dist/{pad.d.ts → pad-C-Y_3U-y.d.cts} +5 -1
- package/dist/pad-C-Y_3U-y.d.cts.map +1 -0
- package/dist/pad-mujSKqwW.d.mts +22 -0
- package/dist/pad-mujSKqwW.d.mts.map +1 -0
- package/dist/pad.cjs +1 -9
- package/dist/pad.d.cts +2 -0
- package/dist/pad.d.mts +2 -0
- package/dist/pad.mjs +1 -1
- package/dist/pascal-case-BNtNlP7E.mjs +2 -0
- package/dist/pascal-case-BNtNlP7E.mjs.map +1 -0
- package/dist/pascal-case-BQIXhOgM.cjs +1 -0
- package/dist/{pascal-case.d.ts → pascal-case-DpwdMyIR.d.mts} +6 -2
- package/dist/pascal-case-DpwdMyIR.d.mts.map +1 -0
- package/dist/pascal-case-KPXemzHF.d.cts +24 -0
- package/dist/pascal-case-KPXemzHF.d.cts.map +1 -0
- package/dist/pascal-case.cjs +1 -15
- package/dist/pascal-case.d.cts +2 -0
- package/dist/pascal-case.d.mts +2 -0
- package/dist/pascal-case.mjs +1 -1
- package/dist/period-split-BN6zXi_S.cjs +1 -0
- package/dist/{period-split.d.ts → period-split-C2v7R4SQ.d.cts} +6 -2
- package/dist/period-split-C2v7R4SQ.d.cts.map +1 -0
- package/dist/period-split-CBVGYrUw.d.mts +24 -0
- package/dist/period-split-CBVGYrUw.d.mts.map +1 -0
- package/dist/period-split-PMoklYb7.mjs +2 -0
- package/dist/period-split-PMoklYb7.mjs.map +1 -0
- package/dist/period-split.cjs +1 -17
- package/dist/period-split.d.cts +2 -0
- package/dist/period-split.d.mts +2 -0
- package/dist/period-split.mjs +1 -1
- package/dist/prepositions-BOeFQ28J.mjs +2 -0
- package/dist/prepositions-BOeFQ28J.mjs.map +1 -0
- package/dist/prepositions-Bp1VMgpn.cjs +1 -0
- package/dist/prepositions-By1zoaRG.d.cts +5 -0
- package/dist/prepositions-By1zoaRG.d.cts.map +1 -0
- package/dist/prepositions-DHokBFOW.d.mts +5 -0
- package/dist/prepositions-DHokBFOW.d.mts.map +1 -0
- package/dist/prepositions.cjs +1 -7
- package/dist/prepositions.d.cts +2 -0
- package/dist/prepositions.d.mts +2 -0
- package/dist/prepositions.mjs +1 -1
- package/dist/pretty-bytes-Dam2n54B.d.mts +152 -0
- package/dist/pretty-bytes-Dam2n54B.d.mts.map +1 -0
- package/dist/pretty-bytes-DmvsumO5.mjs +2 -0
- package/dist/pretty-bytes-DmvsumO5.mjs.map +1 -0
- package/dist/pretty-bytes-Dv8t5D6N.d.cts +152 -0
- package/dist/pretty-bytes-Dv8t5D6N.d.cts.map +1 -0
- package/dist/pretty-bytes-aHFwwFbw.cjs +1 -0
- package/dist/pretty-bytes.cjs +1 -48
- package/dist/pretty-bytes.d.cts +2 -0
- package/dist/pretty-bytes.d.mts +2 -0
- package/dist/pretty-bytes.mjs +1 -1
- package/dist/{snake-case.d.ts → snake-case-C5v7aTGP.d.cts} +8 -4
- package/dist/snake-case-C5v7aTGP.d.cts.map +1 -0
- package/dist/snake-case-CKf8oDuS.d.mts +28 -0
- package/dist/snake-case-CKf8oDuS.d.mts.map +1 -0
- package/dist/snake-case.cjs +1 -22
- package/dist/snake-case.d.cts +2 -0
- package/dist/snake-case.d.mts +2 -0
- package/dist/snake-case.mjs +1 -1
- package/dist/special-cases-Ab3-SD5v.d.cts +5 -0
- package/dist/special-cases-Ab3-SD5v.d.cts.map +1 -0
- package/dist/special-cases-CfBSDTk8.cjs +1 -0
- package/dist/special-cases-D7iFXvkR.d.mts +5 -0
- package/dist/special-cases-D7iFXvkR.d.mts.map +1 -0
- package/dist/special-cases-gNNOSEbK.mjs +2 -0
- package/dist/special-cases-gNNOSEbK.mjs.map +1 -0
- package/dist/special-cases.cjs +1 -7
- package/dist/special-cases.d.cts +2 -0
- package/dist/special-cases.d.mts +2 -0
- package/dist/special-cases.mjs +1 -1
- package/dist/{start-case.d.ts → start-case-B9JLArn_.d.mts} +6 -2
- package/dist/start-case-B9JLArn_.d.mts.map +1 -0
- package/dist/start-case-CbdCqiBN.mjs +2 -0
- package/dist/start-case-CbdCqiBN.mjs.map +1 -0
- package/dist/start-case-ChU_5Pyw.cjs +1 -0
- package/dist/start-case-CsYY3Ed4.d.cts +32 -0
- package/dist/start-case-CsYY3Ed4.d.cts.map +1 -0
- package/dist/start-case.cjs +1 -18
- package/dist/start-case.d.cts +2 -0
- package/dist/start-case.d.mts +2 -0
- package/dist/start-case.mjs +1 -1
- package/dist/strip-indents-CPW83oCs.cjs +3 -0
- package/dist/strip-indents-D2-u4Zmx.mjs +4 -0
- package/dist/strip-indents-D2-u4Zmx.mjs.map +1 -0
- package/dist/{strip-indents.d.ts → strip-indents-DBLDecNL.d.cts} +5 -1
- package/dist/strip-indents-DBLDecNL.d.cts.map +1 -0
- package/dist/strip-indents-Dtn3rr-P.d.mts +21 -0
- package/dist/strip-indents-Dtn3rr-P.d.mts.map +1 -0
- package/dist/strip-indents.cjs +1 -11
- package/dist/strip-indents.d.cts +2 -0
- package/dist/strip-indents.d.mts +2 -0
- package/dist/strip-indents.mjs +1 -3
- package/dist/title-case-B_fyCnko.cjs +1 -0
- package/dist/title-case-Cx3FA_Rw.d.mts +15 -0
- package/dist/title-case-Cx3FA_Rw.d.mts.map +1 -0
- package/dist/title-case-DHhN2pBE.mjs +2 -0
- package/dist/title-case-DHhN2pBE.mjs.map +1 -0
- package/dist/title-case-mvtRcmDU.d.cts +15 -0
- package/dist/title-case-mvtRcmDU.d.cts.map +1 -0
- package/dist/title-case.cjs +1 -13
- package/dist/title-case.d.cts +2 -0
- package/dist/title-case.d.mts +2 -0
- package/dist/title-case.mjs +1 -1
- package/dist/{unescape.d.ts → unescape-5MrwINOf.d.cts} +5 -1
- package/dist/unescape-5MrwINOf.d.cts.map +1 -0
- package/dist/unescape-9cS7rNT5.d.mts +20 -0
- package/dist/unescape-9cS7rNT5.d.mts.map +1 -0
- package/dist/unescape-CKwnSwBD.mjs +2 -0
- package/dist/unescape-CKwnSwBD.mjs.map +1 -0
- package/dist/unescape-Ck5lwccz.cjs +1 -0
- package/dist/unescape.cjs +1 -16
- package/dist/unescape.d.cts +2 -0
- package/dist/unescape.d.mts +2 -0
- package/dist/unescape.mjs +1 -1
- package/dist/upper-case-first-Bwfq-lAe.d.mts +14 -0
- package/dist/upper-case-first-Bwfq-lAe.d.mts.map +1 -0
- package/dist/upper-case-first-Ca89zvpr.mjs +2 -0
- package/dist/upper-case-first-Ca89zvpr.mjs.map +1 -0
- package/dist/upper-case-first-IJMSoKjS.cjs +1 -0
- package/dist/upper-case-first-uHFwRCJ8.d.cts +14 -0
- package/dist/upper-case-first-uHFwRCJ8.d.cts.map +1 -0
- package/dist/upper-case-first.cjs +1 -9
- package/dist/upper-case-first.d.cts +2 -0
- package/dist/upper-case-first.d.mts +2 -0
- package/dist/upper-case-first.mjs +1 -1
- package/package.json +87 -409
- package/dist/acronyms.d.ts +0 -13
- package/dist/articles.d.ts +0 -1
- package/dist/combine.d.ts +0 -8
- package/dist/conjunctions.d.ts +0 -1
- package/dist/format-special-cases.d.ts +0 -19
- package/dist/index.d.ts +0 -35
- package/dist/lower-case-first.d.ts +0 -10
- package/dist/prepositions.d.ts +0 -1
- package/dist/pretty-bytes.d.ts +0 -148
- package/dist/special-cases.d.ts +0 -1
- package/dist/title-case.d.ts +0 -9
- package/dist/upper-case-first.d.ts +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deburr-Ct9BIF1O.mjs","names":["characterMap: Record<string, string>"],"sources":["../../helpers/src/remove-accents.ts","../src/deburr.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.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://stormsoftware.com/projects/stryke/docs\n Contact: https://stormsoftware.com/contact\n License: https://stormsoftware.com/projects/stryke/license\n\n ------------------------------------------------------------------- */\n\nexport const characterMap: Record<string, string> = {\n À: \"A\",\n Á: \"A\",\n Â: \"A\",\n Ã: \"A\",\n Ä: \"A\",\n Å: \"A\",\n Ấ: \"A\",\n Ắ: \"A\",\n Ẳ: \"A\",\n Ẵ: \"A\",\n Ặ: \"A\",\n Æ: \"AE\",\n Ầ: \"A\",\n Ằ: \"A\",\n Ȃ: \"A\",\n Ç: \"C\",\n Ḉ: \"C\",\n È: \"E\",\n É: \"E\",\n Ê: \"E\",\n Ë: \"E\",\n Ế: \"E\",\n Ḗ: \"E\",\n Ề: \"E\",\n Ḕ: \"E\",\n Ḝ: \"E\",\n Ȇ: \"E\",\n Ì: \"I\",\n Í: \"I\",\n Î: \"I\",\n Ï: \"I\",\n Ḯ: \"I\",\n Ȋ: \"I\",\n Ð: \"D\",\n Ñ: \"N\",\n Ò: \"O\",\n Ó: \"O\",\n Ô: \"O\",\n Õ: \"O\",\n Ö: \"O\",\n Ø: \"O\",\n Ố: \"O\",\n Ṍ: \"O\",\n Ṓ: \"O\",\n Ȏ: \"O\",\n Ù: \"U\",\n Ú: \"U\",\n Û: \"U\",\n Ü: \"U\",\n Ý: \"Y\",\n à: \"a\",\n á: \"a\",\n â: \"a\",\n ã: \"a\",\n ä: \"a\",\n å: \"a\",\n ấ: \"a\",\n ắ: \"a\",\n ẳ: \"a\",\n ẵ: \"a\",\n ặ: \"a\",\n æ: \"ae\",\n ầ: \"a\",\n ằ: \"a\",\n ȃ: \"a\",\n ç: \"c\",\n ḉ: \"c\",\n è: \"e\",\n é: \"e\",\n ê: \"e\",\n ë: \"e\",\n ế: \"e\",\n ḗ: \"e\",\n ề: \"e\",\n ḕ: \"e\",\n ḝ: \"e\",\n ȇ: \"e\",\n ì: \"i\",\n í: \"i\",\n î: \"i\",\n ï: \"i\",\n ḯ: \"i\",\n ȋ: \"i\",\n ð: \"d\",\n ñ: \"n\",\n ò: \"o\",\n ó: \"o\",\n ô: \"o\",\n õ: \"o\",\n ö: \"o\",\n ø: \"o\",\n ố: \"o\",\n ṍ: \"o\",\n ṓ: \"o\",\n ȏ: \"o\",\n ù: \"u\",\n ú: \"u\",\n û: \"u\",\n ü: \"u\",\n ý: \"y\",\n ÿ: \"y\",\n Ā: \"A\",\n ā: \"a\",\n Ă: \"A\",\n ă: \"a\",\n Ą: \"A\",\n ą: \"a\",\n Ć: \"C\",\n ć: \"c\",\n Ĉ: \"C\",\n ĉ: \"c\",\n Ċ: \"C\",\n ċ: \"c\",\n Č: \"C\",\n č: \"c\",\n C̆: \"C\",\n c̆: \"c\",\n Ď: \"D\",\n ď: \"d\",\n Đ: \"D\",\n đ: \"d\",\n Ē: \"E\",\n ē: \"e\",\n Ĕ: \"E\",\n ĕ: \"e\",\n Ė: \"E\",\n ė: \"e\",\n Ę: \"E\",\n ę: \"e\",\n Ě: \"E\",\n ě: \"e\",\n Ĝ: \"G\",\n Ǵ: \"G\",\n ĝ: \"g\",\n ǵ: \"g\",\n Ğ: \"G\",\n ğ: \"g\",\n Ġ: \"G\",\n ġ: \"g\",\n Ģ: \"G\",\n ģ: \"g\",\n Ĥ: \"H\",\n ĥ: \"h\",\n Ħ: \"H\",\n ħ: \"h\",\n Ḫ: \"H\",\n ḫ: \"h\",\n Ĩ: \"I\",\n ĩ: \"i\",\n Ī: \"I\",\n ī: \"i\",\n Ĭ: \"I\",\n ĭ: \"i\",\n Į: \"I\",\n į: \"i\",\n İ: \"I\",\n ı: \"i\",\n IJ: \"IJ\",\n ij: \"ij\",\n Ĵ: \"J\",\n ĵ: \"j\",\n Ķ: \"K\",\n ķ: \"k\",\n Ḱ: \"K\",\n ḱ: \"k\",\n K̆: \"K\",\n k̆: \"k\",\n Ĺ: \"L\",\n ĺ: \"l\",\n Ļ: \"L\",\n ļ: \"l\",\n Ľ: \"L\",\n ľ: \"l\",\n Ŀ: \"L\",\n ŀ: \"l\",\n Ł: \"l\",\n ł: \"l\",\n Ḿ: \"M\",\n ḿ: \"m\",\n M̆: \"M\",\n m̆: \"m\",\n Ń: \"N\",\n ń: \"n\",\n Ņ: \"N\",\n ņ: \"n\",\n Ň: \"N\",\n ň: \"n\",\n ʼn: \"n\",\n N̆: \"N\",\n n̆: \"n\",\n Ō: \"O\",\n ō: \"o\",\n Ŏ: \"O\",\n ŏ: \"o\",\n Ő: \"O\",\n ő: \"o\",\n Œ: \"OE\",\n œ: \"oe\",\n P̆: \"P\",\n p̆: \"p\",\n Ŕ: \"R\",\n ŕ: \"r\",\n Ŗ: \"R\",\n ŗ: \"r\",\n Ř: \"R\",\n ř: \"r\",\n R̆: \"R\",\n r̆: \"r\",\n Ȓ: \"R\",\n ȓ: \"r\",\n Ś: \"S\",\n ś: \"s\",\n Ŝ: \"S\",\n ŝ: \"s\",\n Ş: \"S\",\n Ș: \"S\",\n ș: \"s\",\n ş: \"s\",\n Š: \"S\",\n š: \"s\",\n Ţ: \"T\",\n ţ: \"t\",\n ț: \"t\",\n Ț: \"T\",\n Ť: \"T\",\n ť: \"t\",\n Ŧ: \"T\",\n ŧ: \"t\",\n T̆: \"T\",\n t̆: \"t\",\n Ũ: \"U\",\n ũ: \"u\",\n Ū: \"U\",\n ū: \"u\",\n Ŭ: \"U\",\n ŭ: \"u\",\n Ů: \"U\",\n ů: \"u\",\n Ű: \"U\",\n ű: \"u\",\n Ų: \"U\",\n ų: \"u\",\n Ȗ: \"U\",\n ȗ: \"u\",\n V̆: \"V\",\n v̆: \"v\",\n Ŵ: \"W\",\n ŵ: \"w\",\n Ẃ: \"W\",\n ẃ: \"w\",\n X̆: \"X\",\n x̆: \"x\",\n Ŷ: \"Y\",\n ŷ: \"y\",\n Ÿ: \"Y\",\n Y̆: \"Y\",\n y̆: \"y\",\n Ź: \"Z\",\n ź: \"z\",\n Ż: \"Z\",\n ż: \"z\",\n Ž: \"Z\",\n ž: \"z\",\n ſ: \"s\",\n ƒ: \"f\",\n Ơ: \"O\",\n ơ: \"o\",\n Ư: \"U\",\n ư: \"u\",\n Ǎ: \"A\",\n ǎ: \"a\",\n Ǐ: \"I\",\n ǐ: \"i\",\n Ǒ: \"O\",\n ǒ: \"o\",\n Ǔ: \"U\",\n ǔ: \"u\",\n Ǖ: \"U\",\n ǖ: \"u\",\n Ǘ: \"U\",\n ǘ: \"u\",\n Ǚ: \"U\",\n ǚ: \"u\",\n Ǜ: \"U\",\n ǜ: \"u\",\n Ứ: \"U\",\n ứ: \"u\",\n Ṹ: \"U\",\n ṹ: \"u\",\n Ǻ: \"A\",\n ǻ: \"a\",\n Ǽ: \"AE\",\n ǽ: \"ae\",\n Ǿ: \"O\",\n ǿ: \"o\",\n Þ: \"TH\",\n þ: \"th\",\n Ṕ: \"P\",\n ṕ: \"p\",\n Ṥ: \"S\",\n ṥ: \"s\",\n X́: \"X\",\n x́: \"x\",\n Ѓ: \"Г\",\n ѓ: \"г\",\n Ќ: \"К\",\n ќ: \"к\",\n A̋: \"A\",\n a̋: \"a\",\n E̋: \"E\",\n e̋: \"e\",\n I̋: \"I\",\n i̋: \"i\",\n Ǹ: \"N\",\n ǹ: \"n\",\n Ồ: \"O\",\n ồ: \"o\",\n Ṑ: \"O\",\n ṑ: \"o\",\n Ừ: \"U\",\n ừ: \"u\",\n Ẁ: \"W\",\n ẁ: \"w\",\n Ỳ: \"Y\",\n ỳ: \"y\",\n Ȁ: \"A\",\n ȁ: \"a\",\n Ȅ: \"E\",\n ȅ: \"e\",\n Ȉ: \"I\",\n ȉ: \"i\",\n Ȍ: \"O\",\n ȍ: \"o\",\n Ȑ: \"R\",\n ȑ: \"r\",\n Ȕ: \"U\",\n ȕ: \"u\",\n B̌: \"B\",\n b̌: \"b\",\n Č̣: \"C\",\n č̣: \"c\",\n Ê̌: \"E\",\n ê̌: \"e\",\n F̌: \"F\",\n f̌: \"f\",\n Ǧ: \"G\",\n ǧ: \"g\",\n Ȟ: \"H\",\n ȟ: \"h\",\n J̌: \"J\",\n ǰ: \"j\",\n Ǩ: \"K\",\n ǩ: \"k\",\n M̌: \"M\",\n m̌: \"m\",\n P̌: \"P\",\n p̌: \"p\",\n Q̌: \"Q\",\n q̌: \"q\",\n Ř̩: \"R\",\n ř̩: \"r\",\n Ṧ: \"S\",\n ṧ: \"s\",\n V̌: \"V\",\n v̌: \"v\",\n W̌: \"W\",\n w̌: \"w\",\n X̌: \"X\",\n x̌: \"x\",\n Y̌: \"Y\",\n y̌: \"y\",\n A̧: \"A\",\n a̧: \"a\",\n B̧: \"B\",\n b̧: \"b\",\n Ḑ: \"D\",\n ḑ: \"d\",\n Ȩ: \"E\",\n ȩ: \"e\",\n Ɛ̧: \"E\",\n ɛ̧: \"e\",\n Ḩ: \"H\",\n ḩ: \"h\",\n I̧: \"I\",\n i̧: \"i\",\n Ɨ̧: \"I\",\n ɨ̧: \"i\",\n M̧: \"M\",\n m̧: \"m\",\n O̧: \"O\",\n o̧: \"o\",\n Q̧: \"Q\",\n q̧: \"q\",\n U̧: \"U\",\n u̧: \"u\",\n X̧: \"X\",\n x̧: \"x\",\n Z̧: \"Z\",\n z̧: \"z\"\n};\n\nconst chars = Object.keys(characterMap).join(\"|\");\nconst allAccents = new RegExp(chars, \"g\");\n\n/**\n * Removes accents from a string.\n *\n * @param str - The string to remove accents from\n * @returns The string without accents\n */\nexport const removeAccents = (str: string) =>\n str.replace(allAccents, match => characterMap[match]!);\n","/* -------------------------------------------------------------------\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\nimport { removeAccents } from \"@stryke/helpers/remove-accents\";\n\n/**\n * Converts a string by replacing special characters and diacritical marks with their ASCII equivalents.\n * For example, \"Crème brûlée\" becomes \"Creme brulee\".\n *\n * @param str - The input string to be deburred.\n * @returns The deburred string with special characters replaced by their ASCII equivalents.\n *\n * @example\n * // Basic usage:\n * deburr('Æthelred') // returns 'Aethelred'\n *\n * @example\n * // Handling diacritical marks:\n * deburr('München') // returns 'Munchen'\n *\n * @example\n * // Special characters:\n * deburr('Crème brûlée') // returns 'Creme brulee'\n */\nexport function deburr(str: string): string {\n return removeAccents(str.normalize(\"NFD\"));\n}\n"],"mappings":"AAiBA,MAAaA,EAAuC,CAClD,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,GAAI,IACJ,GAAI,IACJ,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,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t,`g`),r=t=>t.replace(n,t=>e[t]);function i(e){return r(e.normalize(`NFD`))}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
package/dist/deburr.cjs
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.deburr = deburr;
|
|
7
|
-
var _removeAccents = require("@stryke/helpers/remove-accents");
|
|
8
|
-
function deburr(r) {
|
|
9
|
-
return (0, _removeAccents.removeAccents)(r.normalize("NFD"));
|
|
10
|
-
}
|
|
1
|
+
const e=require(`./deburr-ulWvJuGq.cjs`);exports.deburr=e.t;
|
package/dist/deburr.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as e}from"./deburr-Ct9BIF1O.mjs";export{e as deburr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return e.replace(/([a-z\d])([A-Z])/g,`$1_$2`).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,`$1_$2`).toLowerCase()}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
//#region src/decamelize.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Convert a camelCase or PascalCase string to a snake_case string.
|
|
3
4
|
*
|
|
4
5
|
* @param value - The camelCase or PascalCase string to convert.
|
|
5
6
|
* @returns The converted snake_case string.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
declare function decamelize(value: string): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { decamelize as t };
|
|
11
|
+
//# sourceMappingURL=decamelize-CXxqH9_o.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decamelize-CXxqH9_o.d.mts","names":[],"sources":["../src/decamelize.ts"],"sourcesContent":[],"mappings":";;AAwBA;;;;;iBAAgB,UAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decamelize-CuI8547m.mjs","names":[],"sources":["../src/decamelize.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\n/**\n * Convert a camelCase or PascalCase string to a snake_case string.\n *\n * @param value - The camelCase or PascalCase string to convert.\n * @returns The converted snake_case string.\n */\nexport function decamelize(value: string): string {\n return value\n .replace(/([a-z\\d])([A-Z])/g, \"$1_$2\")\n .replace(/([A-Z]+)([A-Z][a-z\\d]+)/g, \"$1_$2\")\n .toLowerCase();\n}\n"],"mappings":"AAwBA,SAAgB,EAAW,EAAuB,CAChD,OAAO,EACJ,QAAQ,oBAAqB,QAAQ,CACrC,QAAQ,2BAA4B,QAAQ,CAC5C,aAAa"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/decamelize.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Convert a camelCase or PascalCase string to a snake_case string.
|
|
4
|
+
*
|
|
5
|
+
* @param value - The camelCase or PascalCase string to convert.
|
|
6
|
+
* @returns The converted snake_case string.
|
|
7
|
+
*/
|
|
8
|
+
declare function decamelize(value: string): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { decamelize as t };
|
|
11
|
+
//# sourceMappingURL=decamelize-esVsRIRg.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decamelize-esVsRIRg.d.cts","names":[],"sources":["../src/decamelize.ts"],"sourcesContent":[],"mappings":";;AAwBA;;;;;iBAAgB,UAAA"}
|
package/dist/decamelize.cjs
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.decamelize = decamelize;
|
|
7
|
-
function decamelize(e) {
|
|
8
|
-
return e.replace(/([a-z\d])([A-Z])/g, "$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g, "$1_$2").toLowerCase();
|
|
9
|
-
}
|
|
1
|
+
const e=require(`./decamelize-CO4-wIwF.cjs`);exports.decamelize=e.t;
|
package/dist/decamelize.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{t as e}from"./decamelize-CuI8547m.mjs";export{e as decamelize};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/escape.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Converts the characters "&", "\<", "\>", '"', and "'" in `str` to their corresponding HTML entities.
|
|
3
4
|
* For example, "\<" becomes "<".
|
|
@@ -14,4 +15,7 @@
|
|
|
14
15
|
* @param str - The string to escape.
|
|
15
16
|
* @returns Returns the escaped string.
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
+
declare function escape(str: string): string;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { escape as t };
|
|
21
|
+
//# sourceMappingURL=escape-C1LTGJQ1.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape-C1LTGJQ1.d.cts","names":[],"sources":["../src/escape.ts"],"sourcesContent":[],"mappings":";;AA0CA;;;;;;;;;;;;;;;iBAAgB,MAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/escape.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Converts the characters "&", "\<", "\>", '"', and "'" in `str` to their corresponding HTML entities.
|
|
4
|
+
* For example, "\<" becomes "<".
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* escape('This is a <div> element.'); // returns 'This is a <div> element.'
|
|
10
|
+
* escape('This is a "quote"'); // returns 'This is a "quote"'
|
|
11
|
+
* escape("This is a 'quote'"); // returns 'This is a 'quote''
|
|
12
|
+
* escape('This is a & symbol'); // returns 'This is a & symbol'
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @param str - The string to escape.
|
|
16
|
+
* @returns Returns the escaped string.
|
|
17
|
+
*/
|
|
18
|
+
declare function escape(str: string): string;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { escape as t };
|
|
21
|
+
//# sourceMappingURL=escape-C44shywT.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape-C44shywT.d.mts","names":[],"sources":["../src/escape.ts"],"sourcesContent":[],"mappings":";;AA0CA;;;;;;;;;;;;;;;iBAAgB,MAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function t(t){return t.replace(/["&'<>]/g,t=>e[t]||``)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape-CydJ1P9x.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 * escape('This is a <div> element.'); // returns 'This is a <div> element.'\n * escape('This is a \"quote\"'); // returns 'This is a "quote"'\n * escape(\"This is a 'quote'\"); // returns 'This is a 'quote''\n * escape('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 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"}
|
package/dist/escape.cjs
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.escape = escape;
|
|
7
|
-
const e = {
|
|
8
|
-
"&": "&",
|
|
9
|
-
"<": "<",
|
|
10
|
-
">": ">",
|
|
11
|
-
'"': """,
|
|
12
|
-
"'": "'"
|
|
13
|
-
};
|
|
14
|
-
function escape(t) {
|
|
15
|
-
return t.replace(/["&'<>]/g, r => e[r] || "");
|
|
16
|
-
}
|
|
1
|
+
const e=require(`./escape-CRoXgV4v.cjs`);exports.escape=e.t;
|
package/dist/escape.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{t as e}from"./escape-CydJ1P9x.mjs";export{e as escape};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./acronyms-DiyHB1FK.cjs`),t=require(`./articles-D9xvmhoM.cjs`),n=require(`./conjunctions-CaM47PDl.cjs`),r=require(`./prepositions-Bp1VMgpn.cjs`),i=require(`./special-cases-CfBSDTk8.cjs`);function a(a,o,s,c){let l=a.toLowerCase(),u=a.toUpperCase();for(let e of i.t)if(e.toLowerCase()===l)return e;return e.t[u]?c?.useDescriptions===!1?e.t[u].display||u:e.t[u].description:o===0||o===s.length-1||a.length>=4?a:r.t.includes(l)||n.t.includes(l)||t.t.includes(l)?l:a}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/format-special-cases.d.ts
|
|
2
|
+
interface FormatSpecialCasesOptions {
|
|
3
|
+
/**
|
|
4
|
+
* If true, use the descriptions from the acronym list instead of the display names.
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue true
|
|
7
|
+
*/
|
|
8
|
+
useDescriptions?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Handle special words in a title.
|
|
12
|
+
*
|
|
13
|
+
* @see https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case
|
|
14
|
+
*
|
|
15
|
+
* @param value - The word to handle
|
|
16
|
+
* @param index - The index of the word in the title
|
|
17
|
+
* @param words - The full title as an array of words
|
|
18
|
+
* @returns The formatted word
|
|
19
|
+
*/
|
|
20
|
+
declare function formatSpecialCases(value: string, index: number, words: string[], options?: FormatSpecialCasesOptions): string;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { formatSpecialCases as n, FormatSpecialCasesOptions as t };
|
|
23
|
+
//# sourceMappingURL=format-special-cases-DLTiwMAS.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-special-cases-DLTiwMAS.d.mts","names":[],"sources":["../src/format-special-cases.ts"],"sourcesContent":[],"mappings":";UAwBiB,yBAAA;EAAA;AAmBjB;;;;;;;;;;;;;;;;iBAAgB,kBAAA,0DAIJ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/format-special-cases.d.ts
|
|
2
|
+
interface FormatSpecialCasesOptions {
|
|
3
|
+
/**
|
|
4
|
+
* If true, use the descriptions from the acronym list instead of the display names.
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue true
|
|
7
|
+
*/
|
|
8
|
+
useDescriptions?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Handle special words in a title.
|
|
12
|
+
*
|
|
13
|
+
* @see https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case
|
|
14
|
+
*
|
|
15
|
+
* @param value - The word to handle
|
|
16
|
+
* @param index - The index of the word in the title
|
|
17
|
+
* @param words - The full title as an array of words
|
|
18
|
+
* @returns The formatted word
|
|
19
|
+
*/
|
|
20
|
+
declare function formatSpecialCases(value: string, index: number, words: string[], options?: FormatSpecialCasesOptions): string;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { formatSpecialCases as n, FormatSpecialCasesOptions as t };
|
|
23
|
+
//# sourceMappingURL=format-special-cases-Db69zjlV.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-special-cases-Db69zjlV.d.cts","names":[],"sources":["../src/format-special-cases.ts"],"sourcesContent":[],"mappings":";UAwBiB,yBAAA;EAAA;AAmBjB;;;;;;;;;;;;;;;;iBAAgB,kBAAA,0DAIJ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./acronyms-CqHURYjd.mjs";import{t}from"./articles-Dzsbtfwj.mjs";import{t as n}from"./conjunctions-CWyOkdmq.mjs";import{t as r}from"./prepositions-BOeFQ28J.mjs";import{t as i}from"./special-cases-gNNOSEbK.mjs";function a(a,o,s,c){let l=a.toLowerCase(),u=a.toUpperCase();for(let e of i)if(e.toLowerCase()===l)return e;return e[u]?c?.useDescriptions===!1?e[u].display||u:e[u].description:o===0||o===s.length-1||a.length>=4?a:r.includes(l)||n.includes(l)||t.includes(l)?l:a}export{a as t};
|
|
2
|
+
//# sourceMappingURL=format-special-cases-F9O32YcB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-special-cases-F9O32YcB.mjs","names":[],"sources":["../src/format-special-cases.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\nimport { ACRONYMS } from \"./acronyms\";\nimport { ARTICLES } from \"./articles\";\nimport { CONJUNCTIONS } from \"./conjunctions\";\nimport { PREPOSITIONS } from \"./prepositions\";\nimport { SPECIAL_CASES } from \"./special-cases\";\n\nexport interface FormatSpecialCasesOptions {\n /**\n * If true, use the descriptions from the acronym list instead of the display names.\n *\n * @defaultValue true\n */\n useDescriptions?: boolean;\n}\n\n/**\n * Handle special words in a title.\n *\n * @see https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case\n *\n * @param value - The word to handle\n * @param index - The index of the word in the title\n * @param words - The full title as an array of words\n * @returns The formatted word\n */\nexport function formatSpecialCases(\n value: string,\n index: number,\n words: string[],\n options?: FormatSpecialCasesOptions\n): string {\n const lowercaseStr = value.toLowerCase();\n const uppercaseStr = value.toUpperCase();\n\n for (const special of SPECIAL_CASES) {\n if (special.toLowerCase() === lowercaseStr) {\n return special;\n }\n }\n\n if (ACRONYMS[uppercaseStr]) {\n return options?.useDescriptions !== false\n ? ACRONYMS[uppercaseStr].description\n : ACRONYMS[uppercaseStr].display || uppercaseStr;\n }\n\n // If the word is the first word in the sentence, but it's not a specially\n // cased word or an acronym, return the capitalized string\n if (index === 0) {\n return value;\n }\n\n // If the word is the last word in the sentence, but it's not a specially\n // cased word or an acronym, return the capitalized string\n if (index === words.length - 1) {\n return value;\n }\n\n // Return the word capitalized if it's 4 characters or more\n if (value.length >= 4) {\n return value;\n }\n\n if (PREPOSITIONS.includes(lowercaseStr)) {\n return lowercaseStr;\n }\n if (CONJUNCTIONS.includes(lowercaseStr)) {\n return lowercaseStr;\n }\n if (ARTICLES.includes(lowercaseStr)) {\n return lowercaseStr;\n }\n\n return value;\n}\n"],"mappings":"oOA2CA,SAAgB,EACd,EACA,EACA,EACA,EACQ,CACR,IAAM,EAAe,EAAM,aAAa,CAClC,EAAe,EAAM,aAAa,CAExC,IAAK,IAAM,KAAW,EACpB,GAAI,EAAQ,aAAa,GAAK,EAC5B,OAAO,EAqCX,OAjCI,EAAS,GACJ,GAAS,kBAAoB,GAEhC,EAAS,GAAc,SAAW,EADlC,EAAS,GAAc,YAMzB,IAAU,GAMV,IAAU,EAAM,OAAS,GAKzB,EAAM,QAAU,EACX,EAGL,EAAa,SAAS,EAAa,EAGnC,EAAa,SAAS,EAAa,EAGnC,EAAS,SAAS,EAAa,CAC1B,EAGF"}
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.formatSpecialCases = formatSpecialCases;
|
|
7
|
-
var _acronyms = require("./acronyms.cjs");
|
|
8
|
-
var _articles = require("./articles.cjs");
|
|
9
|
-
var _conjunctions = require("./conjunctions.cjs");
|
|
10
|
-
var _prepositions = require("./prepositions.cjs");
|
|
11
|
-
var _specialCases = require("./special-cases.cjs");
|
|
12
|
-
function formatSpecialCases(r, i, n, p) {
|
|
13
|
-
const t = r.toLowerCase(),
|
|
14
|
-
e = r.toUpperCase();
|
|
15
|
-
for (const s of _specialCases.SPECIAL_CASES) if (s.toLowerCase() === t) return s;
|
|
16
|
-
return _acronyms.ACRONYMS[e] ? p?.useDescriptions !== !1 ? _acronyms.ACRONYMS[e].description : _acronyms.ACRONYMS[e].display || e : i === 0 || i === n.length - 1 || r.length >= 4 ? r : _prepositions.PREPOSITIONS.includes(t) || _conjunctions.CONJUNCTIONS.includes(t) || _articles.ARTICLES.includes(t) ? t : r;
|
|
17
|
-
}
|
|
1
|
+
require(`./acronyms-DiyHB1FK.cjs`);const e=require(`./format-special-cases-CuctZ76T.cjs`);exports.formatSpecialCases=e.t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./acronyms-CqHURYjd.mjs";import{t as e}from"./format-special-cases-F9O32YcB.mjs";export{e as formatSpecialCases};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/get-words.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Regular expression pattern to split strings into words for various case conversions
|
|
3
4
|
*
|
|
@@ -14,20 +15,20 @@
|
|
|
14
15
|
* const matches = 'camelCaseHTTPRequest'.match(CASE_SPLIT_PATTERN);
|
|
15
16
|
* // matches: ['camel', 'Case', 'HTTP', 'Request']
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
declare const CASE_SPLIT_PATTERN: RegExp;
|
|
19
|
+
declare const RELAXED_SPLIT_PATTERN: RegExp;
|
|
19
20
|
/**
|
|
20
21
|
* Options for splitting a string into words
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
interface GetWordsOptions {
|
|
24
|
+
/**
|
|
25
|
+
* Whether to use a relaxed splitting pattern
|
|
26
|
+
*/
|
|
27
|
+
relaxed?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Custom regular expression for splitting the string
|
|
30
|
+
*/
|
|
31
|
+
split?: RegExp;
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
34
|
* Splits a string into words using a regular expression pattern
|
|
@@ -40,4 +41,7 @@ export interface GetWordsOptions {
|
|
|
40
41
|
* @param options - Options for splitting the string
|
|
41
42
|
* @returns An array of words
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
declare function getWords(str: string, options?: GetWordsOptions): string[];
|
|
45
|
+
//#endregion
|
|
46
|
+
export { getWords as i, GetWordsOptions as n, RELAXED_SPLIT_PATTERN as r, CASE_SPLIT_PATTERN as t };
|
|
47
|
+
//# sourceMappingURL=get-words-Cdgu0ngS.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-words-Cdgu0ngS.d.cts","names":[],"sources":["../src/get-words.ts"],"sourcesContent":[],"mappings":";;AAkCA;AAEA;AAMA;AAuBA;;;;;;;;;;;;cA/Ba,oBAAkB;cAElB,uBAAqB;;;;UAMjB,eAAA;;;;;;;;UASP;;;;;;;;;;;;;iBAcM,QAAA,wBAA+B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#region src/get-words.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Regular expression pattern to split strings into words for various case conversions
|
|
4
|
+
*
|
|
5
|
+
* This pattern matches sequences of characters in a string, considering the following case:
|
|
6
|
+
* - Sequences of two or more uppercase letters followed by an uppercase letter and lowercase letters or digits (for acronyms)
|
|
7
|
+
* - Sequences of one uppercase letter optionally followed by lowercase letters and digits
|
|
8
|
+
* - Single uppercase letters
|
|
9
|
+
* - Sequences of digits
|
|
10
|
+
*
|
|
11
|
+
* The resulting match can be used to convert camelCase, snake_case, kebab-case, and other mixed formats into
|
|
12
|
+
* a consistent format like snake case.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const matches = 'camelCaseHTTPRequest'.match(CASE_SPLIT_PATTERN);
|
|
16
|
+
* // matches: ['camel', 'Case', 'HTTP', 'Request']
|
|
17
|
+
*/
|
|
18
|
+
declare const CASE_SPLIT_PATTERN: RegExp;
|
|
19
|
+
declare const RELAXED_SPLIT_PATTERN: RegExp;
|
|
20
|
+
/**
|
|
21
|
+
* Options for splitting a string into words
|
|
22
|
+
*/
|
|
23
|
+
interface GetWordsOptions {
|
|
24
|
+
/**
|
|
25
|
+
* Whether to use a relaxed splitting pattern
|
|
26
|
+
*/
|
|
27
|
+
relaxed?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Custom regular expression for splitting the string
|
|
30
|
+
*/
|
|
31
|
+
split?: RegExp;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Splits a string into words using a regular expression pattern
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* const words = getWords('camelCaseHTTPRequest');
|
|
38
|
+
* // words: ['camel', 'Case', 'HTTP', 'Request']
|
|
39
|
+
*
|
|
40
|
+
* @param str - The string to split into words
|
|
41
|
+
* @param options - Options for splitting the string
|
|
42
|
+
* @returns An array of words
|
|
43
|
+
*/
|
|
44
|
+
declare function getWords(str: string, options?: GetWordsOptions): string[];
|
|
45
|
+
//#endregion
|
|
46
|
+
export { getWords as i, GetWordsOptions as n, RELAXED_SPLIT_PATTERN as r, CASE_SPLIT_PATTERN as t };
|
|
47
|
+
//# sourceMappingURL=get-words-De8YIU0J.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-words-De8YIU0J.d.mts","names":[],"sources":["../src/get-words.ts"],"sourcesContent":[],"mappings":";;AAkCA;AAEA;AAMA;AAuBA;;;;;;;;;;;;cA/Ba,oBAAkB;cAElB,uBAAqB;;;;UAMjB,eAAA;;;;;;;;UASP;;;;;;;;;;;;;iBAcM,QAAA,wBAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=/[A-Z]?[a-z]+|\d+|[A-Z]+(?![a-z])/g,t=/[A-Z/.-]?[a-z/.-]+|\d+|[A-Z/.-]+(?![a-z/.-])/g;function n(n,r={}){if(n.length>5e3)throw Error("The regular expression parameter of `get-words` can't handle strings longer than 2000 characters");return[...n.match(r.split??(r.relaxed?t:e))??[]]}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=/[A-Z]?[a-z]+|\d+|[A-Z]+(?![a-z])/g,t=/[A-Z/.-]?[a-z/.-]+|\d+|[A-Z/.-]+(?![a-z/.-])/g;function n(n,r={}){if(n.length>5e3)throw Error("The regular expression parameter of `get-words` can't handle strings longer than 2000 characters");return[...n.match(r.split??(r.relaxed?t:e))??[]]}export{t as n,n as r,e as t};
|
|
2
|
+
//# sourceMappingURL=get-words-vlruPM_Q.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-words-vlruPM_Q.mjs","names":[],"sources":["../src/get-words.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\n/**\n * Regular expression pattern to split strings into words for various case conversions\n *\n * This pattern matches sequences of characters in a string, considering the following case:\n * - Sequences of two or more uppercase letters followed by an uppercase letter and lowercase letters or digits (for acronyms)\n * - Sequences of one uppercase letter optionally followed by lowercase letters and digits\n * - Single uppercase letters\n * - Sequences of digits\n *\n * The resulting match can be used to convert camelCase, snake_case, kebab-case, and other mixed formats into\n * a consistent format like snake case.\n *\n * @example\n * const matches = 'camelCaseHTTPRequest'.match(CASE_SPLIT_PATTERN);\n * // matches: ['camel', 'Case', 'HTTP', 'Request']\n */\nexport const CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|\\d+|[A-Z]+(?![a-z])/g;\n\nexport const RELAXED_SPLIT_PATTERN =\n /[A-Z/.-]?[a-z/.-]+|\\d+|[A-Z/.-]+(?![a-z/.-])/g;\n\n/**\n * Options for splitting a string into words\n */\nexport interface GetWordsOptions {\n /**\n * Whether to use a relaxed splitting pattern\n */\n relaxed?: boolean;\n\n /**\n * Custom regular expression for splitting the string\n */\n split?: RegExp;\n}\n\n/**\n * Splits a string into words using a regular expression pattern\n *\n * @example\n * const words = getWords('camelCaseHTTPRequest');\n * // words: ['camel', 'Case', 'HTTP', 'Request']\n *\n * @param str - The string to split into words\n * @param options - Options for splitting the string\n * @returns An array of words\n */\nexport function getWords(str: string, options: GetWordsOptions = {}): string[] {\n if (str.length > 5000) {\n throw new Error(\n \"The regular expression parameter of `get-words` can't handle strings longer than 2000 characters\"\n );\n }\n\n return [\n ...(str.match(\n options.split ??\n (options.relaxed ? RELAXED_SPLIT_PATTERN : CASE_SPLIT_PATTERN)\n ) ?? [])\n ];\n}\n"],"mappings":"AAkCA,MAAa,EAAqB,oCAErB,EACX,gDA4BF,SAAgB,EAAS,EAAa,EAA2B,EAAE,CAAY,CAC7E,GAAI,EAAI,OAAS,IACf,MAAU,MACR,mGACD,CAGH,MAAO,CACL,GAAI,EAAI,MACN,EAAQ,QACL,EAAQ,QAAU,EAAwB,GAC9C,EAAI,EAAE,CACR"}
|
package/dist/get-words.cjs
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.RELAXED_SPLIT_PATTERN = exports.CASE_SPLIT_PATTERN = void 0;
|
|
7
|
-
exports.getWords = getWords;
|
|
8
|
-
const CASE_SPLIT_PATTERN = exports.CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|\d+|[A-Z]+(?![a-z])/g,
|
|
9
|
-
RELAXED_SPLIT_PATTERN = exports.RELAXED_SPLIT_PATTERN = /[A-Z/.-]?[a-z/.-]+|\d+|[A-Z/.-]+(?![a-z/.-])/g;
|
|
10
|
-
function getWords(e, r = {}) {
|
|
11
|
-
if (e.length > 5e3) throw new Error("The regular expression parameter of `get-words` can't handle strings longer than 2000 characters");
|
|
12
|
-
return [...(e.match(r.split ?? (r.relaxed ? RELAXED_SPLIT_PATTERN : CASE_SPLIT_PATTERN)) ?? [])];
|
|
13
|
-
}
|
|
1
|
+
const e=require(`./get-words-IF97Rpfr.cjs`);exports.CASE_SPLIT_PATTERN=e.t,exports.RELAXED_SPLIT_PATTERN=e.n,exports.getWords=e.r;
|
package/dist/get-words.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{n as e,r as t,t as n}from"./get-words-vlruPM_Q.mjs";export{n as CASE_SPLIT_PATTERN,e as RELAXED_SPLIT_PATTERN,t as getWords};
|