muuuuse 5.0.1 → 5.0.2
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/package.json +1 -1
- package/src/util.js +11 -2
package/package.json
CHANGED
package/src/util.js
CHANGED
|
@@ -9,7 +9,16 @@ const fs = require("node:fs");
|
|
|
9
9
|
const os = require("node:os");
|
|
10
10
|
const path = require("node:path");
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
function getBrand() {
|
|
13
|
+
try {
|
|
14
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "../package.json"), "utf8"));
|
|
15
|
+
return `🔌Muuuuse v${pkg.version}`;
|
|
16
|
+
} catch {
|
|
17
|
+
return "🔌Muuuuse";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const BRAND = getBrand();
|
|
13
22
|
const POLL_MS = 220;
|
|
14
23
|
const MAX_RELAY_CHARS = 4000;
|
|
15
24
|
const SESSION_MATCH_WINDOW_MS = 5 * 60 * 1000;
|
|
@@ -282,7 +291,7 @@ function listSessionNames() {
|
|
|
282
291
|
|
|
283
292
|
function usage() {
|
|
284
293
|
return [
|
|
285
|
-
`${BRAND} arms
|
|
294
|
+
`${BRAND} arms terminals with flexible routing to any targets - pure message relay graph.`,
|
|
286
295
|
"",
|
|
287
296
|
"Usage:",
|
|
288
297
|
" muuuuse",
|