@ovendjs/utils 0.21.7

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Oven
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @ovenjs/utils
package/dist/index.cjs ADDED
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ fmtDebug: () => fmtDebug,
25
+ fmtGroup: () => fmtGroup
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+
29
+ // src/shared/fmt.ts
30
+ var fmtColors = {
31
+ RED: "\x1B[31m",
32
+ GREEN: "\x1B[32m",
33
+ YELLOW: "\x1B[33m",
34
+ BLUE: "\x1B[34m",
35
+ NC: "\x1B[0m"
36
+ };
37
+ function fmtDebug(options) {
38
+ if (options.string) {
39
+ const prepre_point = ` _`.repeat(10);
40
+ const pre_point = `
41
+ |
42
+ `;
43
+ const starting_point = `| ${fmtColors.GREEN}@ovenjs${fmtColors.NC}/${fmtColors.RED}${options.package.name}${fmtColors.NC} ~ v${fmtColors.YELLOW}${options.package.version}${fmtColors.NC}
44
+ |`;
45
+ let middle_point = `[${options.package.name.toUpperCase()}]: ${options.string}
46
+ |`;
47
+ if (options.string.includes("\n")) {
48
+ const lines = options.string.split("\n");
49
+ middle_point = ``;
50
+ for (let i = 0; i < lines.length; i++) {
51
+ middle_point += `[${options.package.name.toUpperCase()}]: ${lines[i]}
52
+ |`;
53
+ }
54
+ }
55
+ const ending_point = ` _`.repeat(10).trimStart();
56
+ const combined = prepre_point + pre_point + starting_point + middle_point + ending_point;
57
+ const combined_lines = combined.split("\n");
58
+ const combined_nl = combined_lines.map((line) => `- ${line}`);
59
+ const combined_clean = combined_nl.join("\n");
60
+ return combined_clean;
61
+ }
62
+ if (options.array) {
63
+ options.array.formatted ??= "exclusive";
64
+ const top = " _".repeat(10);
65
+ const empty_space = "\n|\n";
66
+ const starting_point = `| ${fmtColors.GREEN}@ovenjs${fmtColors.NC}/${fmtColors.RED}${options.package.name}${fmtColors.NC} ~ v${fmtColors.YELLOW}${options.package.version}${fmtColors.NC}
67
+ `;
68
+ let lines = "";
69
+ if (options.array.formatted === "exclusive")
70
+ lines = `| [${options.package.name.toUpperCase()}]:
71
+ `;
72
+ for (let i = 0; i < options.array.input.length; i++) {
73
+ if (options.array.formatted === "exclusive") {
74
+ lines += `| [${i}]: ${options.array.input[i]}
75
+ `;
76
+ } else {
77
+ lines += `| [${options.package.name.toUpperCase()}]: ${options.array.input[i]}
78
+ `;
79
+ }
80
+ }
81
+ const bottom = " _".repeat(10);
82
+ const combined_all = top + empty_space + starting_point + lines + bottom;
83
+ const combined_clean = combined_all.split("\n").map((line) => `- ${line}`).join("\n");
84
+ const combined = combined_clean;
85
+ return combined;
86
+ }
87
+ throw new Error("Unknown Input. Must be either a String or an Array");
88
+ }
89
+ __name(fmtDebug, "fmtDebug");
90
+ function fmtGroup(group) {
91
+ return {
92
+ _: group.length,
93
+ add: /* @__PURE__ */ __name((text) => group.push(text), "add"),
94
+ fmt: /* @__PURE__ */ __name(() => group.join("\n"), "fmt"),
95
+ fmtArray: /* @__PURE__ */ __name(() => group, "fmtArray")
96
+ };
97
+ }
98
+ __name(fmtGroup, "fmtGroup");
99
+ // Annotate the CommonJS export names for ESM import in node:
100
+ 0 && (module.exports = {
101
+ fmtDebug,
102
+ fmtGroup
103
+ });
104
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/shared/fmt.ts"],"sourcesContent":["export * from './shared/types';\nexport { fmtDebug, fmtGroup } from './shared/fmt';\n","import { FmtDebugOptions } from './types';\n\nexport const fmtColors = {\n RED: '\\x1b[31m',\n GREEN: '\\x1b[32m',\n YELLOW: '\\x1b[33m',\n BLUE: '\\x1b[34m',\n NC: '\\x1b[0m',\n};\n\nexport function fmtDebug(options: FmtDebugOptions): string | Error {\n if (options.string) {\n const prepre_point = ` _`.repeat(10);\n const pre_point = `\\n|\\n`;\n\n const starting_point = `| ${fmtColors.GREEN}@ovenjs${fmtColors.NC}/${fmtColors.RED}${options.package.name}${fmtColors.NC} ~ v${fmtColors.YELLOW}${options.package.version}${fmtColors.NC} \\n|`;\n\n let middle_point = `[${options.package.name.toUpperCase()}]: ${options.string}\\n|`;\n\n if (options.string.includes('\\n')) {\n const lines = options.string.split('\\n');\n middle_point = ``;\n for (let i = 0; i < lines.length; i++) {\n middle_point += `[${options.package.name.toUpperCase()}]: ${lines[i]}\\n|`;\n }\n }\n\n const ending_point = ` _`.repeat(10).trimStart();\n\n const combined =\n prepre_point + pre_point + starting_point + middle_point + ending_point;\n const combined_lines = combined.split('\\n');\n const combined_nl = combined_lines.map(line => `- ${line}`);\n const combined_clean = combined_nl.join('\\n');\n return combined_clean;\n }\n\n if (options.array) {\n options.array.formatted ??= \"exclusive\";\n \n const top = \" _\".repeat(10);\n const empty_space = \"\\n|\\n\"\n const starting_point = `| ${fmtColors.GREEN}@ovenjs${fmtColors.NC}/${fmtColors.RED}${options.package.name}${fmtColors.NC} ~ v${fmtColors.YELLOW}${options.package.version}${fmtColors.NC}\\n`;\n let lines = \"\";\n if (options.array.formatted === \"exclusive\")\n lines = `| [${options.package.name.toUpperCase()}]:\\n`\n\n for (let i = 0; i < options.array.input.length; i++) {\n if (options.array.formatted === \"exclusive\") {\n lines += `| [${i}]: ${options.array.input[i]}\\n`;\n } else {\n lines += `| [${options.package.name.toUpperCase()}]: ${options.array.input[i]}\\n`\n }\n }\n\n const bottom = \" _\".repeat(10)\n const combined_all = top + empty_space + starting_point + lines + bottom;\n const combined_clean = combined_all\n .split(\"\\n\")\n .map(line => `- ${line}`)\n .join(\"\\n\")\n\n const combined = combined_clean\n return combined;\n }\n\n throw new Error(\"Unknown Input. Must be either a String or an Array\");\n}\n\nexport function fmtGroup(group: Array<string>) {\n return {\n _: group.length,\n add: (text: string) => group.push(text),\n fmt: () => group.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ions {
10
+ package: FmtPackage;
11
+ string?: string;
12
+ array?: FmtDebugArray;
13
+ }
14
+
15
+ declare function fmtDebug(options: FmtDebugOptions): string | Error;
16
+ declare function fmtGroup(group: Array<string>): {
17
+ _: number;
18
+ add: (text: string) => number;
19
+ fmt: () => string;
20
+ fmtArray: () => string[];
21
+ };
22
+
23
+ export { type FmtDebugArray, type FmtDebugOptions, type FmtPackage, fmtDebug, fmtGroup };
@@ -0,0 +1,23 @@
1
+ interface FmtPackage {
2
+ name: string;
3
+ version: string;
4
+ }
5
+ interface FmtDebugArray {
6
+ input: Array<string>;
7
+ formatted?: 'unique' | 'exclusive';
8
+ }
9
+ interface FmtDebugOptions {
10
+ package: FmtPackage;
11
+ string?: string;
12
+ array?: FmtDebugArray;
13
+ }
14
+
15
+ declare function fmtDebug(options: FmtDebugOptions): string | Error;
16
+ declare function fmtGroup(group: Array<string>): {
17
+ _: number;
18
+ add: (text: string) => number;
19
+ fmt: () => string;
20
+ fmtArray: () => string[];
21
+ };
22
+
23
+ export { type FmtDebugArray, type FmtDebugOptions, type FmtPackage, fmtDebug, fmtGroup };
package/dist/index.js ADDED
@@ -0,0 +1,78 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/shared/fmt.ts
5
+ var fmtColors = {
6
+ RED: "\x1B[31m",
7
+ GREEN: "\x1B[32m",
8
+ YELLOW: "\x1B[33m",
9
+ BLUE: "\x1B[34m",
10
+ NC: "\x1B[0m"
11
+ };
12
+ function fmtDebug(options) {
13
+ if (options.string) {
14
+ const prepre_point = ` _`.repeat(10);
15
+ const pre_point = `
16
+ |
17
+ `;
18
+ const starting_point = `| ${fmtColors.GREEN}@ovenjs${fmtColors.NC}/${fmtColors.RED}${options.package.name}${fmtColors.NC} ~ v${fmtColors.YELLOW}${options.package.version}${fmtColors.NC}
19
+ |`;
20
+ let middle_point = `[${options.package.name.toUpperCase()}]: ${options.string}
21
+ |`;
22
+ if (options.string.includes("\n")) {
23
+ const lines = options.string.split("\n");
24
+ middle_point = ``;
25
+ for (let i = 0; i < lines.length; i++) {
26
+ middle_point += `[${options.package.name.toUpperCase()}]: ${lines[i]}
27
+ |`;
28
+ }
29
+ }
30
+ const ending_point = ` _`.repeat(10).trimStart();
31
+ const combined = prepre_point + pre_point + starting_point + middle_point + ending_point;
32
+ const combined_lines = combined.split("\n");
33
+ const combined_nl = combined_lines.map((line) => `- ${line}`);
34
+ const combined_clean = combined_nl.join("\n");
35
+ return combined_clean;
36
+ }
37
+ if (options.array) {
38
+ options.array.formatted ??= "exclusive";
39
+ const top = " _".repeat(10);
40
+ const empty_space = "\n|\n";
41
+ const starting_point = `| ${fmtColors.GREEN}@ovenjs${fmtColors.NC}/${fmtColors.RED}${options.package.name}${fmtColors.NC} ~ v${fmtColors.YELLOW}${options.package.version}${fmtColors.NC}
42
+ `;
43
+ let lines = "";
44
+ if (options.array.formatted === "exclusive")
45
+ lines = `| [${options.package.name.toUpperCase()}]:
46
+ `;
47
+ for (let i = 0; i < options.array.input.length; i++) {
48
+ if (options.array.formatted === "exclusive") {
49
+ lines += `| [${i}]: ${options.array.input[i]}
50
+ `;
51
+ } else {
52
+ lines += `| [${options.package.name.toUpperCase()}]: ${options.array.input[i]}
53
+ `;
54
+ }
55
+ }
56
+ const bottom = " _".repeat(10);
57
+ const combined_all = top + empty_space + starting_point + lines + bottom;
58
+ const combined_clean = combined_all.split("\n").map((line) => `- ${line}`).join("\n");
59
+ const combined = combined_clean;
60
+ return combined;
61
+ }
62
+ throw new Error("Unknown Input. Must be either a String or an Array");
63
+ }
64
+ __name(fmtDebug, "fmtDebug");
65
+ function fmtGroup(group) {
66
+ return {
67
+ _: group.length,
68
+ add: /* @__PURE__ */ __name((text) => group.push(text), "add"),
69
+ fmt: /* @__PURE__ */ __name(() => group.join("\n"), "fmt"),
70
+ fmtArray: /* @__PURE__ */ __name(() => group, "fmtArray")
71
+ };
72
+ }
73
+ __name(fmtGroup, "fmtGroup");
74
+ export {
75
+ fmtDebug,
76
+ fmtGroup
77
+ };
78
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared/fmt.ts"],"sourcesContent":["import { FmtDebugOptions } from './types';\n\nexport const fmtColors = {\n RED: '\\x1b[31m',\n GREEN: '\\x1b[32m',\n YELLOW: '\\x1b[33m',\n BLUE: '\\x1b[34m',\n NC: '\\x1b[0m',\n};\n\nexport function fmtDebug(options: FmtDebugOptions): string | Error {\n if (options.string) {\n const prepre_point = ` _`.repeat(10);\n const pre_point = `\\n|\\n`;\n\n const starting_point = `| ${fmtColors.GREEN}@ovenjs${fmtColors.NC}/${fmtColors.RED}${options.package.name}${fmtColors.NC} ~ v${fmtColors.YELLOW}${options.package.version}${fmtColors.NC} \\n|`;\n\n let middle_point = `[${options.package.name.toUpperCase()}]: ${options.string}\\n|`;\n\n if (options.string.includes('\\n')) {\n const lines = options.string.split('\\n');\n middle_point = ``;\n for (let i = 0; i < lines.length; i++) {\n middle_point += `[${options.package.name.toUpperCase()}]: ${lines[i]}\\n|`;\n }\n }\n\n const ending_point = ` _`.repeat(10).trimStart();\n\n const combined =\n prepre_point + pre_point + starting_point + middle_point + ending_point;\n const combined_lines = combined.split('\\n');\n const combined_nl = combined_lines.map(line => `- ${line}`);\n const combined_clean = combined_nl.join('\\n');\n return combined_clean;\n }\n\n if (options.array) {\n options.array.formatted ??= \"exclusive\";\n \n const top = \" _\".repeat(10);\n const empty_space = \"\\n|\\n\"\n const starting_point = `| ${fmtColors.GREEN}@ovenjs${fmtColors.NC}/${fmtColors.RED}${options.package.name}${fmtColors.NC} ~ v${fmtColors.YELLOW}${options.package.version}${fmtColors.NC}\\n`;\n let lines = \"\";\n if (options.array.formatted === \"exclusive\")\n lines = `| [${options.package.name.toUpperCase()}]:\\n`\n\n for (let i = 0; i < options.array.input.length; i++) {\n if (options.array.formatted === \"exclusive\") {\n lines += `| [${i}]: ${options.array.input[i]}\\n`;\n } else {\n lines += `| [${options.package.name.toUpperCase()}]: ${options.array.input[i]}\\n`\n }\n }\n\n const bottom = \" _\".repeat(10)\n const combined_all = top + empty_space + starting_point + lines + bottom;\n const combined_clean = combined_all\n .split(\"\\n\")\n .map(line => `- ${line}`)\n .join(\"\\n\")\n\n const combined = combined_clean\n return combined;\n }\n\n throw new Error(\"Unknown Input. Must be either a String or an Array\");\n}\n\nexport function fmtGroup(group: Array<string>) {\n return {\n _: group.length,\n add: (text: string) => group.push(text),\n fmt: () => group.join('\\n'),\n fmtArray: () => group\n };\n}\n"],"mappings":";;;;AAEO,IAAM,YAAY;AAAA,EACvB,KAAK;AAAA,EACL,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,IAAI;AACN;AAEO,SAAS,SAAS,SAA0C;AACjE,MAAI,QAAQ,QAAQ;AAClB,UAAM,eAAe,KAAK,OAAO,EAAE;AACnC,UAAM,YAAY;AAAA;AAAA;AAElB,UAAM,iBAAiB,KAAK,UAAU,KAAK,UAAU,UAAU,EAAE,IAAI,UAAU,GAAG,GAAG,QAAQ,QAAQ,IAAI,GAAG,UAAU,EAAE,OAAO,UAAU,MAAM,GAAG,QAAQ,QAAQ,OAAO,GAAG,UAAU,EAAE;AAAA;AAExL,QAAI,eAAe,IAAI,QAAQ,QAAQ,KAAK,YAAY,CAAC,MAAM,QAAQ,MAAM;AAAA;AAE7E,QAAI,QAAQ,OAAO,SAAS,IAAI,GAAG;AACjC,YAAM,QAAQ,QAAQ,OAAO,MAAM,IAAI;AACvC,qBAAe;AACf,eAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,wBAAgB,IAAI,QAAQ,QAAQ,KAAK,YAAY,CAAC,MAAM,MAAM,CAAC,CAAC;AAAA;AAAA,MACtE;AAAA,IACF;AAEA,UAAM,eAAe,KAAK,OAAO,EAAE,EAAE,UAAU;AAE/C,UAAM,WACJ,eAAe,YAAY,iBAAiB,eAAe;AAC7D,UAAM,iBAAiB,SAA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IACL,KAAK,6BAAM,MAAM,KAAK,IAAI,GAArB;AAAA,IACL,UAAU,6BAAM,OAAN;AAAA,EACZ;AACF;AAPgB;","names":[]}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@ovendjs/utils",
3
+ "version": "0.21.7",
4
+ "description": "Utiliy package for ovenjs",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "require": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "import": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ }
21
+ }
22
+ },
23
+ "files": [
24
+ "dist",
25
+ "README.md"
26
+ ],
27
+ "keywords": [
28
+ "utils",
29
+ "discord"
30
+ ],
31
+ "author": "OvenJS",
32
+ "license": "ISC",
33
+ "scripts": {
34
+ "build": "tsc --noEmit && tsup",
35
+ "dev": "tsup --watch",
36
+ "clean": "rm -rf dist",
37
+ "typecheck": "tsc --noEmit"
38
+ }
39
+ }