@crossberryweb/mozhi 3.2.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -1
- package/bin/mozhi-linux-arm64 +0 -0
- package/bin/mozhi-linux-x86_64 +0 -0
- package/bin/mozhi.js +56 -28
- package/checksums-sha256.txt +6 -6
- package/lib/cli.js +185 -0
- package/lib/gh.js +109 -0
- package/lib/pkgman.js +433 -0
- package/lib/registry.js +112 -0
- package/lib/scaffold.js +199 -0
- package/lib/zip.js +239 -0
- package/package.json +7 -3
- package/registry.json +256 -0
package/registry.json
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
{
|
|
2
|
+
"registry": "mozhi",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"updated": "2026-10-26",
|
|
5
|
+
"packages": [
|
|
6
|
+
{
|
|
7
|
+
"name": "mozhi-html",
|
|
8
|
+
"version": "1.0.0",
|
|
9
|
+
"description": "HTML element generation utilities for Mozhi",
|
|
10
|
+
"author": "Mozhi Project",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"category": "web",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"html",
|
|
15
|
+
"web",
|
|
16
|
+
"template",
|
|
17
|
+
"markup"
|
|
18
|
+
],
|
|
19
|
+
"source": "libs/html/html.mz",
|
|
20
|
+
"install": "html/html.mz",
|
|
21
|
+
"import_as": "html",
|
|
22
|
+
"functions": [
|
|
23
|
+
"html_doctype",
|
|
24
|
+
"html_tag",
|
|
25
|
+
"html_attr_tag",
|
|
26
|
+
"html_self_closing",
|
|
27
|
+
"html_head",
|
|
28
|
+
"html_body",
|
|
29
|
+
"html_page",
|
|
30
|
+
"html_div",
|
|
31
|
+
"html_span",
|
|
32
|
+
"html_h1",
|
|
33
|
+
"html_h2",
|
|
34
|
+
"html_h3",
|
|
35
|
+
"html_h4",
|
|
36
|
+
"html_h5",
|
|
37
|
+
"html_h6",
|
|
38
|
+
"html_p",
|
|
39
|
+
"html_a",
|
|
40
|
+
"html_img",
|
|
41
|
+
"html_ul",
|
|
42
|
+
"html_ol",
|
|
43
|
+
"html_table",
|
|
44
|
+
"html_form",
|
|
45
|
+
"html_input",
|
|
46
|
+
"html_button",
|
|
47
|
+
"html_label",
|
|
48
|
+
"html_style",
|
|
49
|
+
"html_script",
|
|
50
|
+
"html_script_src",
|
|
51
|
+
"html_meta",
|
|
52
|
+
"html_link",
|
|
53
|
+
"html_br",
|
|
54
|
+
"html_hr",
|
|
55
|
+
"html_nav",
|
|
56
|
+
"html_header",
|
|
57
|
+
"html_footer",
|
|
58
|
+
"html_section",
|
|
59
|
+
"html_article",
|
|
60
|
+
"html_code",
|
|
61
|
+
"html_pre"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "mozhi-http",
|
|
66
|
+
"version": "1.0.0",
|
|
67
|
+
"description": "HTTP server utilities built on Mozhi networking builtins",
|
|
68
|
+
"author": "Mozhi Project",
|
|
69
|
+
"license": "MIT",
|
|
70
|
+
"category": "web",
|
|
71
|
+
"keywords": [
|
|
72
|
+
"http",
|
|
73
|
+
"server",
|
|
74
|
+
"network",
|
|
75
|
+
"web"
|
|
76
|
+
],
|
|
77
|
+
"source": "libs/http_server/http_server.mz",
|
|
78
|
+
"install": "http_server/http_server.mz",
|
|
79
|
+
"import_as": "http",
|
|
80
|
+
"functions": [
|
|
81
|
+
"http_start",
|
|
82
|
+
"http_response",
|
|
83
|
+
"http_ok_html",
|
|
84
|
+
"http_ok_text",
|
|
85
|
+
"http_ok_json",
|
|
86
|
+
"http_404",
|
|
87
|
+
"http_500",
|
|
88
|
+
"http_parse_path",
|
|
89
|
+
"http_parse_method",
|
|
90
|
+
"http_query_param",
|
|
91
|
+
"http_header",
|
|
92
|
+
"http_serve_once",
|
|
93
|
+
"http_serve_loop",
|
|
94
|
+
"http_router",
|
|
95
|
+
"http_error_json"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "mozhi-json",
|
|
100
|
+
"version": "1.0.0",
|
|
101
|
+
"description": "JSON encoder/decoder helpers for Mozhi",
|
|
102
|
+
"author": "Mozhi Project",
|
|
103
|
+
"license": "MIT",
|
|
104
|
+
"category": "data",
|
|
105
|
+
"keywords": [
|
|
106
|
+
"json",
|
|
107
|
+
"encode",
|
|
108
|
+
"decode",
|
|
109
|
+
"serialize"
|
|
110
|
+
],
|
|
111
|
+
"source": "libs/json/json.mz",
|
|
112
|
+
"install": "json/json.mz",
|
|
113
|
+
"import_as": "json",
|
|
114
|
+
"functions": [
|
|
115
|
+
"json_escape",
|
|
116
|
+
"json_string",
|
|
117
|
+
"json_number",
|
|
118
|
+
"json_bool",
|
|
119
|
+
"json_null",
|
|
120
|
+
"json_array",
|
|
121
|
+
"json_kv",
|
|
122
|
+
"json_object",
|
|
123
|
+
"json_indent",
|
|
124
|
+
"json_array_pretty",
|
|
125
|
+
"json_object_pretty",
|
|
126
|
+
"json_get",
|
|
127
|
+
"json_is_true",
|
|
128
|
+
"json_is_null"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "mozhi-math-utils",
|
|
133
|
+
"version": "1.0.0",
|
|
134
|
+
"description": "Extended math helpers for Mozhi",
|
|
135
|
+
"author": "Mozhi Project",
|
|
136
|
+
"license": "MIT",
|
|
137
|
+
"category": "math",
|
|
138
|
+
"keywords": [
|
|
139
|
+
"math",
|
|
140
|
+
"arithmetic",
|
|
141
|
+
"geometry",
|
|
142
|
+
"statistics"
|
|
143
|
+
],
|
|
144
|
+
"source": "libs/math_utils/math_utils.mz",
|
|
145
|
+
"install": "math_utils/math_utils.mz",
|
|
146
|
+
"import_as": "math_utils",
|
|
147
|
+
"constants": [
|
|
148
|
+
"PI",
|
|
149
|
+
"E"
|
|
150
|
+
],
|
|
151
|
+
"functions": [
|
|
152
|
+
"abs",
|
|
153
|
+
"square",
|
|
154
|
+
"cube",
|
|
155
|
+
"pow",
|
|
156
|
+
"sqrt",
|
|
157
|
+
"cbrt",
|
|
158
|
+
"factorial",
|
|
159
|
+
"gcd",
|
|
160
|
+
"lcm",
|
|
161
|
+
"is_prime",
|
|
162
|
+
"primes_up_to",
|
|
163
|
+
"fibonacci",
|
|
164
|
+
"sum",
|
|
165
|
+
"product",
|
|
166
|
+
"max",
|
|
167
|
+
"min",
|
|
168
|
+
"mean",
|
|
169
|
+
"clamp",
|
|
170
|
+
"lerp",
|
|
171
|
+
"radians",
|
|
172
|
+
"degrees",
|
|
173
|
+
"sin",
|
|
174
|
+
"cos",
|
|
175
|
+
"map_range"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "mozhi-strings",
|
|
180
|
+
"version": "1.0.0",
|
|
181
|
+
"description": "Extended string manipulation utilities for Mozhi",
|
|
182
|
+
"author": "Mozhi Project",
|
|
183
|
+
"license": "MIT",
|
|
184
|
+
"category": "text",
|
|
185
|
+
"keywords": [
|
|
186
|
+
"string",
|
|
187
|
+
"text",
|
|
188
|
+
"manipulation"
|
|
189
|
+
],
|
|
190
|
+
"source": "libs/strings/strings.mz",
|
|
191
|
+
"install": "strings/strings.mz",
|
|
192
|
+
"import_as": "strings",
|
|
193
|
+
"functions": [
|
|
194
|
+
"repeat",
|
|
195
|
+
"reverse",
|
|
196
|
+
"pad_left",
|
|
197
|
+
"pad_right",
|
|
198
|
+
"pad_center",
|
|
199
|
+
"capitalize",
|
|
200
|
+
"title_case",
|
|
201
|
+
"snake_case",
|
|
202
|
+
"camel_case",
|
|
203
|
+
"count",
|
|
204
|
+
"starts_with",
|
|
205
|
+
"ends_with",
|
|
206
|
+
"truncate",
|
|
207
|
+
"trim",
|
|
208
|
+
"strip",
|
|
209
|
+
"join",
|
|
210
|
+
"split",
|
|
211
|
+
"replace",
|
|
212
|
+
"zero_pad",
|
|
213
|
+
"slugify",
|
|
214
|
+
"wrap_lines"
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "strings",
|
|
219
|
+
"version": "1.0.0",
|
|
220
|
+
"description": "String manipulation — reverse, capitalize, snake_case, slugify, pad, truncate",
|
|
221
|
+
"author": "Mozhi Project",
|
|
222
|
+
"license": "MIT",
|
|
223
|
+
"category": "text",
|
|
224
|
+
"keywords": [
|
|
225
|
+
"strings",
|
|
226
|
+
"text",
|
|
227
|
+
"slugify",
|
|
228
|
+
"case"
|
|
229
|
+
],
|
|
230
|
+
"repo": "crossberry-in/mozhi-strings",
|
|
231
|
+
"dist": "releases",
|
|
232
|
+
"asset": "strings.mz.pkg.zip",
|
|
233
|
+
"import_as": "strings",
|
|
234
|
+
"official": true
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "datetime",
|
|
238
|
+
"version": "1.0.0",
|
|
239
|
+
"description": "Date and time helpers — now, today, format, day of week, timestamps",
|
|
240
|
+
"author": "Mozhi Project",
|
|
241
|
+
"license": "MIT",
|
|
242
|
+
"category": "general",
|
|
243
|
+
"keywords": [
|
|
244
|
+
"datetime",
|
|
245
|
+
"time",
|
|
246
|
+
"date",
|
|
247
|
+
"format"
|
|
248
|
+
],
|
|
249
|
+
"repo": "crossberry-in/mozhi-datetime",
|
|
250
|
+
"dist": "releases",
|
|
251
|
+
"asset": "datetime.mz.pkg.zip",
|
|
252
|
+
"import_as": "datetime",
|
|
253
|
+
"official": true
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
}
|