@stryke/convert 0.6.13 → 0.6.21

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.
Files changed (154) hide show
  1. package/CHANGELOG.md +287 -0
  2. package/README.md +18 -9
  3. package/dist/array-buffer-to-string-C11aVDDi.cjs +1 -0
  4. package/dist/array-buffer-to-string-Ck1wKcim.mjs +2 -0
  5. package/dist/array-buffer-to-string-Ck1wKcim.mjs.map +1 -0
  6. package/dist/array-buffer-to-string-CyitIedv.d.cts +11 -0
  7. package/dist/array-buffer-to-string-CyitIedv.d.cts.map +1 -0
  8. package/dist/array-buffer-to-string-DeEBcG3B.d.mts +11 -0
  9. package/dist/array-buffer-to-string-DeEBcG3B.d.mts.map +1 -0
  10. package/dist/array-buffer-to-string.cjs +1 -14
  11. package/dist/array-buffer-to-string.d.cts +2 -0
  12. package/dist/array-buffer-to-string.d.mts +2 -0
  13. package/dist/array-buffer-to-string.mjs +1 -1
  14. package/dist/buffer-to-string-BM0gdjtH.d.cts +14 -0
  15. package/dist/buffer-to-string-BM0gdjtH.d.cts.map +1 -0
  16. package/dist/buffer-to-string-C5uu2I9v.cjs +1 -0
  17. package/dist/buffer-to-string-DOBdYQzE.mjs +2 -0
  18. package/dist/buffer-to-string-DOBdYQzE.mjs.map +1 -0
  19. package/dist/buffer-to-string-KwWDaeXZ.d.mts +14 -0
  20. package/dist/buffer-to-string-KwWDaeXZ.d.mts.map +1 -0
  21. package/dist/buffer-to-string.cjs +1 -9
  22. package/dist/buffer-to-string.d.cts +2 -0
  23. package/dist/buffer-to-string.d.mts +2 -0
  24. package/dist/buffer-to-string.mjs +1 -1
  25. package/dist/index.cjs +1 -126
  26. package/dist/index.d.cts +12 -0
  27. package/dist/index.d.mts +12 -0
  28. package/dist/index.mjs +1 -1
  29. package/dist/neutral.cjs +1 -104
  30. package/dist/neutral.d.cts +10 -0
  31. package/dist/neutral.d.mts +10 -0
  32. package/dist/neutral.mjs +1 -1
  33. package/dist/parse-type-definition-2UeRPhOv.mjs +2 -0
  34. package/dist/parse-type-definition-2UeRPhOv.mjs.map +1 -0
  35. package/dist/parse-type-definition-C6ppBfCe.d.mts +36 -0
  36. package/dist/parse-type-definition-C6ppBfCe.d.mts.map +1 -0
  37. package/dist/parse-type-definition-WznwYsLX.d.cts +36 -0
  38. package/dist/parse-type-definition-WznwYsLX.d.cts.map +1 -0
  39. package/dist/parse-type-definition-tN_XNvw2.cjs +1 -0
  40. package/dist/parse-type-definition.cjs +1 -33
  41. package/dist/parse-type-definition.d.cts +2 -0
  42. package/dist/parse-type-definition.d.mts +2 -0
  43. package/dist/parse-type-definition.mjs +1 -1
  44. package/dist/{string-to-buffer.d.ts → string-to-buffer-Ct8hX_gT.d.mts} +7 -1
  45. package/dist/string-to-buffer-Ct8hX_gT.d.mts.map +1 -0
  46. package/dist/string-to-buffer-DT1hmd7E.cjs +1 -0
  47. package/dist/string-to-buffer-DWEJ2oBO.mjs +2 -0
  48. package/dist/string-to-buffer-DWEJ2oBO.mjs.map +1 -0
  49. package/dist/string-to-buffer-DgvrLU6Z.d.cts +26 -0
  50. package/dist/string-to-buffer-DgvrLU6Z.d.cts.map +1 -0
  51. package/dist/string-to-buffer.cjs +1 -10
  52. package/dist/string-to-buffer.d.cts +2 -0
  53. package/dist/string-to-buffer.d.mts +2 -0
  54. package/dist/string-to-buffer.mjs +1 -1
  55. package/dist/string-to-uint8-array-1nnn75lE.cjs +1 -0
  56. package/dist/string-to-uint8-array-Bemw-wC0.d.mts +25 -0
  57. package/dist/string-to-uint8-array-Bemw-wC0.d.mts.map +1 -0
  58. package/dist/string-to-uint8-array-BuyABRFc.d.cts +25 -0
  59. package/dist/string-to-uint8-array-BuyABRFc.d.cts.map +1 -0
  60. package/dist/string-to-uint8-array-Cp8Uy9Dd.mjs +2 -0
  61. package/dist/string-to-uint8-array-Cp8Uy9Dd.mjs.map +1 -0
  62. package/dist/string-to-uint8-array.cjs +1 -20
  63. package/dist/string-to-uint8-array.d.cts +2 -0
  64. package/dist/string-to-uint8-array.d.mts +2 -0
  65. package/dist/string-to-uint8-array.mjs +1 -1
  66. package/dist/string-to-utf8-array-BiFS1qOV.mjs +2 -0
  67. package/dist/string-to-utf8-array-BiFS1qOV.mjs.map +1 -0
  68. package/dist/string-to-utf8-array-D5Ej2ODQ.d.mts +11 -0
  69. package/dist/string-to-utf8-array-D5Ej2ODQ.d.mts.map +1 -0
  70. package/dist/string-to-utf8-array-DcnUcijD.d.cts +11 -0
  71. package/dist/string-to-utf8-array-DcnUcijD.d.cts.map +1 -0
  72. package/dist/string-to-utf8-array-DzjMX8ba.cjs +1 -0
  73. package/dist/string-to-utf8-array.cjs +1 -10
  74. package/dist/string-to-utf8-array.d.cts +2 -0
  75. package/dist/string-to-utf8-array.d.mts +2 -0
  76. package/dist/string-to-utf8-array.mjs +1 -1
  77. package/dist/to-array-B5vdSOyE.d.mts +20 -0
  78. package/dist/to-array-B5vdSOyE.d.mts.map +1 -0
  79. package/dist/to-array-DypOORLR.mjs +2 -0
  80. package/dist/to-array-DypOORLR.mjs.map +1 -0
  81. package/dist/to-array-hovilP39.d.cts +20 -0
  82. package/dist/to-array-hovilP39.d.cts.map +1 -0
  83. package/dist/to-array-lsJQeHmC.cjs +1 -0
  84. package/dist/to-array.cjs +1 -9
  85. package/dist/to-array.d.cts +2 -0
  86. package/dist/to-array.d.mts +2 -0
  87. package/dist/to-array.mjs +1 -1
  88. package/dist/to-string-key-AETeEmqn.cjs +1 -0
  89. package/dist/to-string-key-BPU8Yayu.mjs +2 -0
  90. package/dist/to-string-key-BPU8Yayu.mjs.map +1 -0
  91. package/dist/to-string-key-BsJi969H.d.cts +11 -0
  92. package/dist/to-string-key-BsJi969H.d.cts.map +1 -0
  93. package/dist/to-string-key-DepSNY9f.d.mts +11 -0
  94. package/dist/to-string-key-DepSNY9f.d.mts.map +1 -0
  95. package/dist/to-string-key.cjs +1 -9
  96. package/dist/to-string-key.d.cts +2 -0
  97. package/dist/to-string-key.d.mts +2 -0
  98. package/dist/to-string-key.mjs +1 -1
  99. package/dist/{uint8-array-to-stream.d.ts → uint8-array-to-stream-C9Mja3TP.d.cts} +7 -3
  100. package/dist/uint8-array-to-stream-C9Mja3TP.d.cts.map +1 -0
  101. package/dist/uint8-array-to-stream-Cihhs2sR.cjs +1 -0
  102. package/dist/uint8-array-to-stream-DTph8RAX.mjs +2 -0
  103. package/dist/uint8-array-to-stream-DTph8RAX.mjs.map +1 -0
  104. package/dist/uint8-array-to-stream-gy0Q2EoT.d.mts +25 -0
  105. package/dist/uint8-array-to-stream-gy0Q2EoT.d.mts.map +1 -0
  106. package/dist/uint8-array-to-stream.cjs +1 -31
  107. package/dist/uint8-array-to-stream.d.cts +2 -0
  108. package/dist/uint8-array-to-stream.d.mts +2 -0
  109. package/dist/uint8-array-to-stream.mjs +1 -1
  110. package/dist/uint8-array-to-string-B1OAtvJr.d.cts +11 -0
  111. package/dist/uint8-array-to-string-B1OAtvJr.d.cts.map +1 -0
  112. package/dist/uint8-array-to-string-CQvEdtuI.mjs +2 -0
  113. package/dist/uint8-array-to-string-CQvEdtuI.mjs.map +1 -0
  114. package/dist/uint8-array-to-string-CjA1fEXC.d.mts +11 -0
  115. package/dist/uint8-array-to-string-CjA1fEXC.d.mts.map +1 -0
  116. package/dist/uint8-array-to-string-CmUiFDa1.cjs +1 -0
  117. package/dist/uint8-array-to-string.cjs +1 -10
  118. package/dist/uint8-array-to-string.d.cts +2 -0
  119. package/dist/uint8-array-to-string.d.mts +2 -0
  120. package/dist/uint8-array-to-string.mjs +1 -1
  121. package/dist/{uint8-array-to-string.node.d.ts → uint8-array-to-string.node-BEp4mxNL.d.mts} +5 -1
  122. package/dist/uint8-array-to-string.node-BEp4mxNL.d.mts.map +1 -0
  123. package/dist/uint8-array-to-string.node-DAjOixF7.d.cts +14 -0
  124. package/dist/uint8-array-to-string.node-DAjOixF7.d.cts.map +1 -0
  125. package/dist/uint8-array-to-string.node-nB1JhZqQ.cjs +1 -0
  126. package/dist/uint8-array-to-string.node-t7NS2Zmo.mjs +2 -0
  127. package/dist/uint8-array-to-string.node-t7NS2Zmo.mjs.map +1 -0
  128. package/dist/uint8-array-to-string.node.cjs +1 -9
  129. package/dist/uint8-array-to-string.node.d.cts +2 -0
  130. package/dist/uint8-array-to-string.node.d.mts +2 -0
  131. package/dist/uint8-array-to-string.node.mjs +1 -1
  132. package/dist/utf8-array-to-string-BiFD671-.d.cts +11 -0
  133. package/dist/utf8-array-to-string-BiFD671-.d.cts.map +1 -0
  134. package/dist/utf8-array-to-string-Brda-b96.d.mts +11 -0
  135. package/dist/utf8-array-to-string-Brda-b96.d.mts.map +1 -0
  136. package/dist/utf8-array-to-string-D96sN_nr.mjs +2 -0
  137. package/dist/utf8-array-to-string-D96sN_nr.mjs.map +1 -0
  138. package/dist/utf8-array-to-string-lutucTzo.cjs +1 -0
  139. package/dist/utf8-array-to-string.cjs +1 -10
  140. package/dist/utf8-array-to-string.d.cts +2 -0
  141. package/dist/utf8-array-to-string.d.mts +2 -0
  142. package/dist/utf8-array-to-string.mjs +1 -1
  143. package/package.json +47 -238
  144. package/dist/array-buffer-to-string.d.ts +0 -7
  145. package/dist/buffer-to-string.d.ts +0 -8
  146. package/dist/index.d.ts +0 -19
  147. package/dist/neutral.d.ts +0 -9
  148. package/dist/parse-type-definition.d.ts +0 -8
  149. package/dist/string-to-uint8-array.d.ts +0 -21
  150. package/dist/string-to-utf8-array.d.ts +0 -7
  151. package/dist/to-array.d.ts +0 -9
  152. package/dist/to-string-key.d.ts +0 -7
  153. package/dist/uint8-array-to-string.d.ts +0 -7
  154. package/dist/utf8-array-to-string.d.ts +0 -7
package/CHANGELOG.md ADDED
@@ -0,0 +1,287 @@
1
+ ![Storm Software's logo banner](https://public.storm-cdn.com/storm-software/banner-1280x320-optimized.gif)
2
+
3
+ # Changelog for Stryke - Convert
4
+
5
+ ## [0.6.20](https://github.com/storm-software/stryke/releases/tag/convert%400.6.20) (12/07/2025)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **type-checks** to **v0.5.5**
10
+ - Updated **types** to **v0.10.19**
11
+
12
+ ## [0.6.19](https://github.com/storm-software/stryke/releases/tag/convert%400.6.19) (12/07/2025)
13
+
14
+ ### Updated Dependencies
15
+
16
+ - Updated **type-checks** to **v0.5.4**
17
+ - Updated **types** to **v0.10.18**
18
+
19
+ ## [0.6.18](https://github.com/storm-software/stryke/releases/tag/convert%400.6.18) (12/07/2025)
20
+
21
+ ### Miscellaneous
22
+
23
+ - **monorepo:** Format monorepo source files
24
+ ([9428936](https://github.com/storm-software/stryke/commit/9428936))
25
+
26
+ ### Updated Dependencies
27
+
28
+ - Updated **type-checks** to **v0.5.3**
29
+ - Updated **types** to **v0.10.17**
30
+
31
+ ## [0.6.17](https://github.com/storm-software/stryke/releases/tag/convert%400.6.17) (12/06/2025)
32
+
33
+ ### Features
34
+
35
+ - **tools-nx:** Resolved issue inferring build command-line arguments for local
36
+ packages ([de00278](https://github.com/storm-software/stryke/commit/de00278))
37
+
38
+ ### Updated Dependencies
39
+
40
+ - Updated **type-checks** to **v0.5.2**
41
+ - Updated **types** to **v0.10.16**
42
+
43
+ ## [0.6.16](https://github.com/storm-software/stryke/releases/tag/convert%400.6.16) (12/06/2025)
44
+
45
+ ### Updated Dependencies
46
+
47
+ - Updated **type-checks** to **v0.5.1**
48
+ - Updated **types** to **v0.10.15**
49
+
50
+ ## [0.6.15](https://github.com/storm-software/stryke/releases/tag/convert%400.6.15) (12/05/2025)
51
+
52
+ ### Updated Dependencies
53
+
54
+ - Updated **type-checks** to **v0.5.0**
55
+
56
+ ## [0.6.14](https://github.com/storm-software/stryke/releases/tag/convert%400.6.14) (12/05/2025)
57
+
58
+ ### Features
59
+
60
+ - **monorepo:** Update repository to use `tsdown` to build/bundle packages
61
+ ([8ceb909](https://github.com/storm-software/stryke/commit/8ceb909))
62
+
63
+ ### Updated Dependencies
64
+
65
+ - Updated **type-checks** to **v0.4.5**
66
+ - Updated **types** to **v0.10.14**
67
+
68
+ ## [0.6.13](https://github.com/storm-software/stryke/releases/tag/convert%400.6.13) (12/01/2025)
69
+
70
+ ### Updated Dependencies
71
+
72
+ - Updated **type-checks** to **v0.4.4**
73
+ - Updated **types** to **v0.10.13**
74
+
75
+ ## [0.6.12](https://github.com/storm-software/stryke/releases/tag/convert%400.6.12) (11/30/2025)
76
+
77
+ ### Updated Dependencies
78
+
79
+ - Updated **type-checks** to **v0.4.3**
80
+ - Updated **types** to **v0.10.12**
81
+
82
+ ## [0.6.11](https://github.com/storm-software/stryke/releases/tag/convert%400.6.11) (11/30/2025)
83
+
84
+ ### Updated Dependencies
85
+
86
+ - Updated **type-checks** to **v0.4.2**
87
+ - Updated **types** to **v0.10.11**
88
+
89
+ ## [0.6.10](https://github.com/storm-software/stryke/releases/tag/convert%400.6.10) (11/30/2025)
90
+
91
+ ### Updated Dependencies
92
+
93
+ - Updated **type-checks** to **v0.4.1**
94
+ - Updated **types** to **v0.10.10**
95
+
96
+ ## [0.6.9](https://github.com/storm-software/stryke/releases/tag/convert%400.6.9) (11/30/2025)
97
+
98
+ ### Updated Dependencies
99
+
100
+ - Updated **type-checks** to **v0.4.0**
101
+ - Updated **types** to **v0.10.9**
102
+
103
+ ## [0.6.8](https://github.com/storm-software/stryke/releases/tag/convert%400.6.8) (11/24/2025)
104
+
105
+ ### Updated Dependencies
106
+
107
+ - Updated **type-checks** to **v0.3.18**
108
+ - Updated **types** to **v0.10.8**
109
+
110
+ ## [0.6.7](https://github.com/storm-software/stryke/releases/tag/convert%400.6.7) (11/21/2025)
111
+
112
+ ### Updated Dependencies
113
+
114
+ - Updated **type-checks** to **v0.3.17**
115
+ - Updated **types** to **v0.10.7**
116
+
117
+ ## [0.6.6](https://github.com/storm-software/stryke/releases/tag/convert%400.6.6) (11/21/2025)
118
+
119
+ ### Updated Dependencies
120
+
121
+ - Updated **type-checks** to **v0.3.16**
122
+ - Updated **types** to **v0.10.6**
123
+
124
+ ## [0.6.5](https://github.com/storm-software/stryke/releases/tag/convert%400.6.5) (11/21/2025)
125
+
126
+ ### Updated Dependencies
127
+
128
+ - Updated **type-checks** to **v0.3.15**
129
+ - Updated **types** to **v0.10.5**
130
+
131
+ ## [0.6.4](https://github.com/storm-software/stryke/releases/tag/convert%400.6.4) (11/21/2025)
132
+
133
+ ### Updated Dependencies
134
+
135
+ - Updated **type-checks** to **v0.3.14**
136
+ - Updated **types** to **v0.10.4**
137
+
138
+ ## [0.6.3](https://github.com/storm-software/stryke/releases/tag/convert%400.6.3) (11/21/2025)
139
+
140
+ ### Updated Dependencies
141
+
142
+ - Updated **type-checks** to **v0.3.13**
143
+ - Updated **types** to **v0.10.3**
144
+
145
+ ## [0.6.2](https://github.com/storm-software/stryke/releases/tag/convert%400.6.2) (11/16/2025)
146
+
147
+ ### Updated Dependencies
148
+
149
+ - Updated **type-checks** to **v0.3.12**
150
+ - Updated **types** to **v0.10.2**
151
+
152
+ ## [0.6.1](https://github.com/storm-software/stryke/releases/tag/convert%400.6.1) (11/08/2025)
153
+
154
+ ### Updated Dependencies
155
+
156
+ - Updated **type-checks** to **v0.3.11**
157
+ - Updated **types** to **v0.10.1**
158
+
159
+ ## [0.6.0](https://github.com/storm-software/stryke/releases/tag/convert%400.6.0) (2025-09-19)
160
+
161
+ ### Features
162
+
163
+ - **convert:** Split package between `neutral` and `node` exports
164
+ ([3cd778b](https://github.com/storm-software/stryke/commit/3cd778b))
165
+
166
+ ## [0.5.0](https://github.com/storm-software/stryke/releases/tag/convert%400.5.0) (2025-09-12)
167
+
168
+ ### Features
169
+
170
+ - **convert:** Added new conversion utilities to package
171
+ ([f287292](https://github.com/storm-software/stryke/commit/f287292))
172
+
173
+ ## [0.4.0](https://github.com/storm-software/stryke/releases/tag/convert%400.4.0) (2025-09-11)
174
+
175
+ ### Features
176
+
177
+ - **convert:** Added various conversion helper utilities
178
+ ([b4dd338](https://github.com/storm-software/stryke/commit/b4dd338))
179
+
180
+ ## [0.3.2](https://github.com/storm-software/stryke/releases/tag/convert%400.3.2) (2025-09-11)
181
+
182
+ ### Miscellaneous
183
+
184
+ - **convert:** Reformat source code files
185
+ ([c0b0f4a](https://github.com/storm-software/stryke/commit/c0b0f4a))
186
+
187
+ ![Storm Software](https://public.storm-cdn.com/brand-banner.png)
188
+
189
+ # Changelog for Stryke - Convert
190
+
191
+ ## [0.3.1](https://github.com/storm-software/stryke/releases/tag/convert%400.3.1) (2025-08-02)
192
+
193
+ ### Miscellaneous
194
+
195
+ - **monorepo:** Reformat source file banners
196
+ ([0698684](https://github.com/storm-software/stryke/commit/0698684))
197
+
198
+ ## [0.3.0](https://github.com/storm-software/stryke/releases/tag/convert%400.3.0) (2025-07-03)
199
+
200
+ ### Features
201
+
202
+ - **convert:** Added the `stringToBuffer` helper function
203
+ ([ab43b8a](https://github.com/storm-software/stryke/commit/ab43b8a))
204
+
205
+ ## [0.2.4](https://github.com/storm-software/stryke/releases/tag/convert%400.2.4) (2025-07-02)
206
+
207
+ ### Bug Fixes
208
+
209
+ - **env:** Resolved issue with invalid TypeScript definition
210
+ ([141ea02](https://github.com/storm-software/stryke/commit/141ea02))
211
+
212
+ ## [0.2.3](https://github.com/storm-software/stryke/releases/tag/convert%400.2.3) (2025-06-17)
213
+
214
+ ### Miscellaneous
215
+
216
+ - **monorepo:** Reformat repository packages
217
+
218
+ ## [0.2.2](https://github.com/storm-software/stryke/releases/tag/convert%400.2.2) (2025-06-12)
219
+
220
+ ### Miscellaneous
221
+
222
+ - **monorepo:** Reformat the repository's README markdown files
223
+ - **monorepo:** Run format script on repository
224
+
225
+ ## [0.2.1](https://github.com/storm-software/stryke/releases/tag/convert%400.2.1) (2025-06-06)
226
+
227
+ ### Miscellaneous
228
+
229
+ - **monorepo:** Run workspace formatting in package
230
+
231
+ ## [0.2.0](https://github.com/storm-software/stryke/releases/tag/convert%400.2.0) (2025-05-16)
232
+
233
+ ### Features
234
+
235
+ - **convert:** Added node typings to convert helpers
236
+
237
+ ### Bug Fixes
238
+
239
+ - **monorepo:** Resolve issue with workspace pnpm version
240
+
241
+ ## [0.1.6](https://github.com/storm-software/stryke/releases/tag/convert%400.1.6) (2025-05-12)
242
+
243
+ ### Miscellaneous
244
+
245
+ - **monorepo:** Reformat monorepo source code
246
+
247
+ ## [0.1.5](https://github.com/storm-software/stryke/releases/tag/convert%400.1.5) (2025-04-10)
248
+
249
+ ### Miscellaneous
250
+
251
+ - **monorepo:** Format the repository's files
252
+ ([1384f3e](https://github.com/storm-software/stryke/commit/1384f3e))
253
+
254
+ ## [0.1.4](https://github.com/storm-software/stryke/releases/tag/convert%400.1.4) (2025-03-28)
255
+
256
+ ### Miscellaneous
257
+
258
+ - **monorepo:** Reformat the source files in repository
259
+ ([bb8df2c](https://github.com/storm-software/stryke/commit/bb8df2c))
260
+
261
+ ## [0.1.3](https://github.com/storm-software/stryke/releases/tag/convert%400.1.3) (2025-03-23)
262
+
263
+ ### Bug Fixes
264
+
265
+ - **monorepo:** Resolve issue with TypeScript compilation
266
+ ([72e995f](https://github.com/storm-software/stryke/commit/72e995f))
267
+
268
+ ## [0.1.2](https://github.com/storm-software/stryke/releases/tag/convert%400.1.2) (2025-03-23)
269
+
270
+ ### Miscellaneous
271
+
272
+ - **monorepo:** Update base storm software packages
273
+ ([8942201](https://github.com/storm-software/stryke/commit/8942201))
274
+
275
+ ## 0.1.1 (2025-03-13)
276
+
277
+ ### Miscellaneous
278
+
279
+ - **monorepo:** Format monorepo project files
280
+ ([f28fdbe](https://github.com/storm-software/stryke/commit/f28fdbe))
281
+
282
+ ## 0.1.0 (2025-03-13)
283
+
284
+ ### Features
285
+
286
+ - **monorepo:** Split `types` project into `type-checks` and `convert` packages
287
+ ([fcc5832](https://github.com/storm-software/stryke/commit/fcc5832))
package/README.md CHANGED
@@ -3,7 +3,13 @@
3
3
  <!-- markdownlint-disable -->
4
4
 
5
5
 
6
- <div align="center"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Storm Software" /></div>
6
+ <div align="center">
7
+ <picture>
8
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif">
9
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-light-optimized.gif">
10
+ <img src="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif" width="100%" alt="Storm Software" />
11
+ </picture>
12
+ </div>
7
13
  <br />
8
14
 
9
15
  <div align="center">
@@ -16,13 +22,13 @@
16
22
  </div>
17
23
 
18
24
  <br />
19
- This package is part of Storm Software's **🌩️ Stryke** monorepo. Stryke packages TypeScript utility packages with shared functionality common to many Storm Software applications.
25
+ This package is part of Storm Software's **💥 Stryke** monorepo. Stryke packages TypeScript utility packages with shared functionality common to many Storm Software applications.
20
26
 
21
27
  <br />
22
28
 
23
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 />
24
30
 
25
- [![Version](https://img.shields.io/badge/version-0.2.2-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.6.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)
26
32
 
27
33
  > [!IMPORTANT] Important
28
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.
@@ -92,10 +98,10 @@ yarn add -D @stryke/convert
92
98
 
93
99
  ## Reduced Package Size
94
100
 
95
- This project uses [tsup](https://tsup.egoist.dev/) to package the source code
96
- due to its ability to remove unused code and ship smaller javascript files
97
- thanks to code splitting. This helps to greatly reduce the size of the package
98
- and to make it easier to use in other projects.
101
+ This project uses [tsdown](https://tsdown.dev) to package the source code due to
102
+ its ability to remove unused code and ship smaller javascript files thanks to
103
+ code splitting. This helps to greatly reduce the size of the package and to make
104
+ it easier to use in other projects.
99
105
 
100
106
  ## Development
101
107
 
@@ -236,10 +242,13 @@ specification. Contributions of any kind welcome!
236
242
  <br />
237
243
 
238
244
  <hr />
239
- <br />
240
245
 
241
246
  <div align="center">
242
- <img src="https://public.storm-cdn.com/logo-banner.png" width="100%" alt="Storm Software" />
247
+ <picture>
248
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp">
249
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light-optimized.webp">
250
+ <img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp" width="100%" alt="Storm Software" />
251
+ </picture>
243
252
  </div>
244
253
  <br />
245
254
 
@@ -0,0 +1 @@
1
+ function e(e){let t=e instanceof Uint8Array?e:new Uint8Array(e),n=t.byteLength;if(n<65535)return String.fromCharCode.apply(null,t);let r=``;for(let e=0;e<n;e++)r+=String.fromCharCode(t[e]);return r}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -0,0 +1,2 @@
1
+ function e(e){let t=e instanceof Uint8Array?e:new Uint8Array(e),n=t.byteLength;if(n<65535)return String.fromCharCode.apply(null,t);let r=``;for(let e=0;e<n;e++)r+=String.fromCharCode(t[e]);return r}export{e as t};
2
+ //# sourceMappingURL=array-buffer-to-string-Ck1wKcim.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array-buffer-to-string-Ck1wKcim.mjs","names":[],"sources":["../src/array-buffer-to-string.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 an ArrayBuffer or Uint8Array to a string\n *\n * @param buffer - The ArrayBuffer or Uint8Array to convert\n * @returns The converted string\n */\nexport function arrayBufferToString(\n buffer: ArrayBuffer | ArrayBufferLike | Uint8Array\n): string {\n const bytes =\n buffer instanceof Uint8Array\n ? buffer\n : new Uint8Array(buffer as ArrayBufferLike);\n const len = bytes.byteLength;\n if (len < 65535) {\n return String.fromCharCode.apply(null, bytes as unknown as number[]);\n }\n let binary = \"\";\n for (let i = 0; i < len; i++) {\n binary += String.fromCharCode(bytes[i]!);\n }\n return binary;\n}\n"],"mappings":"AAwBA,SAAgB,EACd,EACQ,CACR,IAAM,EACJ,aAAkB,WACd,EACA,IAAI,WAAW,EAA0B,CACzC,EAAM,EAAM,WAClB,GAAI,EAAM,MACR,OAAO,OAAO,aAAa,MAAM,KAAM,EAA6B,CAEtE,IAAI,EAAS,GACb,IAAK,IAAI,EAAI,EAAG,EAAI,EAAK,IACvB,GAAU,OAAO,aAAa,EAAM,GAAI,CAE1C,OAAO"}
@@ -0,0 +1,11 @@
1
+ //#region src/array-buffer-to-string.d.ts
2
+ /**
3
+ * Convert an ArrayBuffer or Uint8Array to a string
4
+ *
5
+ * @param buffer - The ArrayBuffer or Uint8Array to convert
6
+ * @returns The converted string
7
+ */
8
+ declare function arrayBufferToString(buffer: ArrayBuffer | ArrayBufferLike | Uint8Array): string;
9
+ //#endregion
10
+ export { arrayBufferToString as t };
11
+ //# sourceMappingURL=array-buffer-to-string-CyitIedv.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array-buffer-to-string-CyitIedv.d.cts","names":[],"sources":["../src/array-buffer-to-string.ts"],"sourcesContent":[],"mappings":";;AAwBA;;;;;iBAAgB,mBAAA,SACN,cAAc,kBAAkB"}
@@ -0,0 +1,11 @@
1
+ //#region src/array-buffer-to-string.d.ts
2
+ /**
3
+ * Convert an ArrayBuffer or Uint8Array to a string
4
+ *
5
+ * @param buffer - The ArrayBuffer or Uint8Array to convert
6
+ * @returns The converted string
7
+ */
8
+ declare function arrayBufferToString(buffer: ArrayBuffer | ArrayBufferLike | Uint8Array): string;
9
+ //#endregion
10
+ export { arrayBufferToString as t };
11
+ //# sourceMappingURL=array-buffer-to-string-DeEBcG3B.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array-buffer-to-string-DeEBcG3B.d.mts","names":[],"sources":["../src/array-buffer-to-string.ts"],"sourcesContent":[],"mappings":";;AAwBA;;;;;iBAAgB,mBAAA,SACN,cAAc,kBAAkB"}
@@ -1,14 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.arrayBufferToString = arrayBufferToString;
7
- function arrayBufferToString(a) {
8
- const r = new Uint8Array(a),
9
- t = r.byteLength;
10
- if (t < 65535) return String.fromCharCode.apply(null, r);
11
- let e = "";
12
- for (let n = 0; n < t; n++) e += String.fromCharCode(r[n]);
13
- return e;
14
- }
1
+ const e=require(`./array-buffer-to-string-C11aVDDi.cjs`);exports.arrayBufferToString=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as arrayBufferToString } from "./array-buffer-to-string-CyitIedv.cjs";
2
+ export { arrayBufferToString };
@@ -0,0 +1,2 @@
1
+ import { t as arrayBufferToString } from "./array-buffer-to-string-DeEBcG3B.mjs";
2
+ export { arrayBufferToString };
@@ -1 +1 @@
1
- export function arrayBufferToString(a){const r=new Uint8Array(a),t=r.byteLength;if(t<65535)return String.fromCharCode.apply(null,r);let e="";for(let n=0;n<t;n++)e+=String.fromCharCode(r[n]);return e}
1
+ import{t as e}from"./array-buffer-to-string-Ck1wKcim.mjs";export{e as arrayBufferToString};
@@ -0,0 +1,14 @@
1
+ import { Buffer } from "node:buffer";
2
+
3
+ //#region src/buffer-to-string.d.ts
4
+
5
+ /**
6
+ * Converts a buffer to a string.
7
+ *
8
+ * @param buf - The buffer to convert.
9
+ * @returns The converted string.
10
+ */
11
+ declare function bufferToString(buf: Buffer | string): string;
12
+ //#endregion
13
+ export { bufferToString as t };
14
+ //# sourceMappingURL=buffer-to-string-BM0gdjtH.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buffer-to-string-BM0gdjtH.d.cts","names":[],"sources":["../src/buffer-to-string.ts"],"sourcesContent":[],"mappings":";;;;;;AA0BA;;;;iBAAgB,cAAA,MAAoB"}
@@ -0,0 +1 @@
1
+ function e(e){return e.toString(`utf8`)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -0,0 +1,2 @@
1
+ function e(e){return e.toString(`utf8`)}export{e as t};
2
+ //# sourceMappingURL=buffer-to-string-DOBdYQzE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buffer-to-string-DOBdYQzE.mjs","names":[],"sources":["../src/buffer-to-string.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 type { Buffer } from \"node:buffer\";\n\n/**\n * Converts a buffer to a string.\n *\n * @param buf - The buffer to convert.\n * @returns The converted string.\n */\nexport function bufferToString(buf: Buffer | string): string {\n return buf.toString(\"utf8\");\n}\n"],"mappings":"AA0BA,SAAgB,EAAe,EAA8B,CAC3D,OAAO,EAAI,SAAS,OAAO"}
@@ -0,0 +1,14 @@
1
+ import { Buffer } from "node:buffer";
2
+
3
+ //#region src/buffer-to-string.d.ts
4
+
5
+ /**
6
+ * Converts a buffer to a string.
7
+ *
8
+ * @param buf - The buffer to convert.
9
+ * @returns The converted string.
10
+ */
11
+ declare function bufferToString(buf: Buffer | string): string;
12
+ //#endregion
13
+ export { bufferToString as t };
14
+ //# sourceMappingURL=buffer-to-string-KwWDaeXZ.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buffer-to-string-KwWDaeXZ.d.mts","names":[],"sources":["../src/buffer-to-string.ts"],"sourcesContent":[],"mappings":";;;;;;AA0BA;;;;iBAAgB,cAAA,MAAoB"}
@@ -1,9 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.bufferToString = bufferToString;
7
- function bufferToString(r) {
8
- return r.toString("utf8");
9
- }
1
+ const e=require(`./buffer-to-string-C5uu2I9v.cjs`);exports.bufferToString=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as bufferToString } from "./buffer-to-string-BM0gdjtH.cjs";
2
+ export { bufferToString };
@@ -0,0 +1,2 @@
1
+ import { t as bufferToString } from "./buffer-to-string-KwWDaeXZ.mjs";
2
+ export { bufferToString };
@@ -1 +1 @@
1
- export function bufferToString(r){return r.toString("utf8")}
1
+ import{t as e}from"./buffer-to-string-DOBdYQzE.mjs";export{e as bufferToString};
package/dist/index.cjs CHANGED
@@ -1,126 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _arrayBufferToString = require("./array-buffer-to-string.cjs");
7
- Object.keys(_arrayBufferToString).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _arrayBufferToString[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _arrayBufferToString[key];
14
- }
15
- });
16
- });
17
- var _bufferToString = require("./buffer-to-string.cjs");
18
- Object.keys(_bufferToString).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _bufferToString[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _bufferToString[key];
25
- }
26
- });
27
- });
28
- var _parseTypeDefinition = require("./parse-type-definition.cjs");
29
- Object.keys(_parseTypeDefinition).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _parseTypeDefinition[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function () {
35
- return _parseTypeDefinition[key];
36
- }
37
- });
38
- });
39
- var _stringToBuffer = require("./string-to-buffer.cjs");
40
- Object.keys(_stringToBuffer).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _stringToBuffer[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function () {
46
- return _stringToBuffer[key];
47
- }
48
- });
49
- });
50
- var _stringToUint8Array = require("./string-to-uint8-array.cjs");
51
- Object.keys(_stringToUint8Array).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _stringToUint8Array[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function () {
57
- return _stringToUint8Array[key];
58
- }
59
- });
60
- });
61
- var _stringToUtf8Array = require("./string-to-utf8-array.cjs");
62
- Object.keys(_stringToUtf8Array).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _stringToUtf8Array[key]) return;
65
- Object.defineProperty(exports, key, {
66
- enumerable: true,
67
- get: function () {
68
- return _stringToUtf8Array[key];
69
- }
70
- });
71
- });
72
- var _toArray = require("./to-array.cjs");
73
- Object.keys(_toArray).forEach(function (key) {
74
- if (key === "default" || key === "__esModule") return;
75
- if (key in exports && exports[key] === _toArray[key]) return;
76
- Object.defineProperty(exports, key, {
77
- enumerable: true,
78
- get: function () {
79
- return _toArray[key];
80
- }
81
- });
82
- });
83
- var _toStringKey = require("./to-string-key.cjs");
84
- Object.keys(_toStringKey).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (key in exports && exports[key] === _toStringKey[key]) return;
87
- Object.defineProperty(exports, key, {
88
- enumerable: true,
89
- get: function () {
90
- return _toStringKey[key];
91
- }
92
- });
93
- });
94
- var _uint8ArrayToStream = require("./uint8-array-to-stream.cjs");
95
- Object.keys(_uint8ArrayToStream).forEach(function (key) {
96
- if (key === "default" || key === "__esModule") return;
97
- if (key in exports && exports[key] === _uint8ArrayToStream[key]) return;
98
- Object.defineProperty(exports, key, {
99
- enumerable: true,
100
- get: function () {
101
- return _uint8ArrayToStream[key];
102
- }
103
- });
104
- });
105
- var _uint8ArrayToString = require("./uint8-array-to-string.node.cjs");
106
- Object.keys(_uint8ArrayToString).forEach(function (key) {
107
- if (key === "default" || key === "__esModule") return;
108
- if (key in exports && exports[key] === _uint8ArrayToString[key]) return;
109
- Object.defineProperty(exports, key, {
110
- enumerable: true,
111
- get: function () {
112
- return _uint8ArrayToString[key];
113
- }
114
- });
115
- });
116
- var _utf8ArrayToString = require("./utf8-array-to-string.cjs");
117
- Object.keys(_utf8ArrayToString).forEach(function (key) {
118
- if (key === "default" || key === "__esModule") return;
119
- if (key in exports && exports[key] === _utf8ArrayToString[key]) return;
120
- Object.defineProperty(exports, key, {
121
- enumerable: true,
122
- get: function () {
123
- return _utf8ArrayToString[key];
124
- }
125
- });
126
- });
1
+ const e=require(`./array-buffer-to-string-C11aVDDi.cjs`),t=require(`./buffer-to-string-C5uu2I9v.cjs`),n=require(`./parse-type-definition-tN_XNvw2.cjs`),r=require(`./string-to-buffer-DT1hmd7E.cjs`),i=require(`./string-to-uint8-array-1nnn75lE.cjs`),a=require(`./string-to-utf8-array-DzjMX8ba.cjs`),o=require(`./to-array-lsJQeHmC.cjs`),s=require(`./to-string-key-AETeEmqn.cjs`),c=require(`./uint8-array-to-stream-Cihhs2sR.cjs`),l=require(`./uint8-array-to-string.node-nB1JhZqQ.cjs`),u=require(`./utf8-array-to-string-lutucTzo.cjs`);exports.arrayBufferToString=e.t,exports.base64StringToUint8Array=i.t,exports.binaryStringToUint8Array=i.n,exports.bufferToString=t.t,exports.concatUint8Array=c.t,exports.concatUint8ArrayStream=c.n,exports.parseTypeDefinition=n.t,exports.stringToBuffer=r.t,exports.stringToUint8Array=i.r,exports.stringToUtf8Array=a.t,exports.toArray=o.t,exports.toStringKey=s.t,exports.uint8ArrayToStream=c.r,exports.uint8ArrayToString=l.t,exports.utf8ArrayToString=u.t;
@@ -0,0 +1,12 @@
1
+ import { t as arrayBufferToString } from "./array-buffer-to-string-CyitIedv.cjs";
2
+ import { t as bufferToString } from "./buffer-to-string-BM0gdjtH.cjs";
3
+ import { t as parseTypeDefinition } from "./parse-type-definition-WznwYsLX.cjs";
4
+ import { t as stringToBuffer } from "./string-to-buffer-DgvrLU6Z.cjs";
5
+ import { n as binaryStringToUint8Array, r as stringToUint8Array, t as base64StringToUint8Array } from "./string-to-uint8-array-BuyABRFc.cjs";
6
+ import { t as stringToUtf8Array } from "./string-to-utf8-array-DcnUcijD.cjs";
7
+ import { t as toArray } from "./to-array-hovilP39.cjs";
8
+ import { t as toStringKey } from "./to-string-key-BsJi969H.cjs";
9
+ import { n as concatUint8ArrayStream, r as uint8ArrayToStream, t as concatUint8Array } from "./uint8-array-to-stream-C9Mja3TP.cjs";
10
+ import { t as uint8ArrayToString } from "./uint8-array-to-string.node-DAjOixF7.cjs";
11
+ import { t as utf8ArrayToString } from "./utf8-array-to-string-BiFD671-.cjs";
12
+ export { arrayBufferToString, base64StringToUint8Array, binaryStringToUint8Array, bufferToString, concatUint8Array, concatUint8ArrayStream, parseTypeDefinition, stringToBuffer, stringToUint8Array, stringToUtf8Array, toArray, toStringKey, uint8ArrayToStream, uint8ArrayToString, utf8ArrayToString };