utilitas 1992.4.21 → 1992.4.23
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 +17 -0
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/index.mjs +6 -5
- package/lib/boxes.mjs +102 -0
- package/lib/manifest.mjs +4 -4
- package/lib/utilitas.mjs +49 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -19,6 +19,20 @@ Works in Node.js and modern browsers.
|
|
|
19
19
|
| init | AsyncFunction | options |
|
|
20
20
|
| send | AsyncFunction | chatId, content, options |
|
|
21
21
|
|
|
22
|
+
### [boxes](./lib/boxes.mjs)
|
|
23
|
+
|
|
24
|
+
| symbol | type | params / value |
|
|
25
|
+
| :--- | :--- | :--- |
|
|
26
|
+
| default | Object | {"topLeft":"╭","top":"─","topRight":"╮","right":"│","bottomRight":"╯","bottom":"─","bottomLeft":"╰","left":"│"} |
|
|
27
|
+
| arrow | Object | {"topLeft":"↘","top":"↓","topRight":"↙","right":"←","bottomRight":"↖","bottom":"↑","bottomLeft":"↗","left":"→"} |
|
|
28
|
+
| bold | Object | {"topLeft":"┏","top":"━","topRight":"┓","right":"┃","bottomRight":"┛","bottom":"━","bottomLeft":"┗","left":"┃"} |
|
|
29
|
+
| classic | Object | {"topLeft":"+","top":"-","topRight":"+","right":"|","bottomRight":"+","bottom":"-","bottomLeft":"+","left":"|"} |
|
|
30
|
+
| double | Object | {"topLeft":"╔","top":"═","topRight":"╗","right":"║","bottomRight":"╝","bottom":"═","bottomLeft":"╚","left":"║"} |
|
|
31
|
+
| doubleSingle | Object | {"topLeft":"╒","top":"═","topRight":"╕","right":"│","bottomRight":"╛","bottom":"═","bottomLeft":"╘","left":"│"} |
|
|
32
|
+
| round | Object | {"topLeft":"╭","top":"─","topRight":"╮","right":"│","bottomRight":"╯","bottom":"─","bottomLeft":"╰","left":"│"} |
|
|
33
|
+
| single | Object | {"topLeft":"┌","top":"─","topRight":"┐","right":"│","bottomRight":"┘","bottom":"─","bottomLeft":"└","left":"│"} |
|
|
34
|
+
| singleDouble | Object | {"topLeft":"╓","top":"─","topRight":"╖","right":"║","bottomRight":"╜","bottom":"─","bottomLeft":"╙","left":"║"} |
|
|
35
|
+
|
|
22
36
|
### [cache](./lib/cache.mjs)
|
|
23
37
|
|
|
24
38
|
| symbol | type | params / value |
|
|
@@ -299,6 +313,7 @@ Works in Node.js and modern browsers.
|
|
|
299
313
|
| ensureArray | Function | any |
|
|
300
314
|
| ensureDate | Function | dt, options |
|
|
301
315
|
| ensureInt | Function | any, options |
|
|
316
|
+
| ensureLines | Function | any, op |
|
|
302
317
|
| ensureString | Function | str, options |
|
|
303
318
|
| exclude | Function | obj, keys |
|
|
304
319
|
| extError | Function | err, status, opt |
|
|
@@ -329,6 +344,7 @@ Works in Node.js and modern browsers.
|
|
|
329
344
|
| isSet | Function | o, strict |
|
|
330
345
|
| isUndefined | Function | any |
|
|
331
346
|
| lineSplit | Function | string, options |
|
|
347
|
+
| locate | AsyncFunction | rootPack |
|
|
332
348
|
| log | Function | content, filename, options |
|
|
333
349
|
| makeStringByLength | Function | string, length |
|
|
334
350
|
| mapKeys | Function | any, map, strict, path |
|
|
@@ -343,6 +359,7 @@ Works in Node.js and modern browsers.
|
|
|
343
359
|
| prettyJson | Function | object, opt |
|
|
344
360
|
| purgeEmoji | Function | any, replace |
|
|
345
361
|
| range | Function | from, to, options |
|
|
362
|
+
| renderBox | Function | content, options |
|
|
346
363
|
| renderCode | Function | code, options |
|
|
347
364
|
| renderText | Function | text, options |
|
|
348
365
|
| resolve | AsyncFunction | resp |
|