devtunnel-cli 3.0.2 → 3.0.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtunnel-cli",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "type": "module",
5
5
  "description": "Share local dev servers worldwide - Zero config tunnel for any framework",
6
6
  "main": "src/core/start.js",
package/src/core/RUN.js CHANGED
@@ -9,7 +9,9 @@ import { dirname, join } from "path";
9
9
  const __filename = fileURLToPath(import.meta.url);
10
10
  const __dirname = dirname(__filename);
11
11
 
12
- // Silent launcher - no output needed
12
+ // Clear screen before starting
13
+ process.stdout.write('\x1B[2J\x1B[0f');
14
+ console.clear();
13
15
 
14
16
  // Start the main app
15
17
  // start.js is in the same directory as RUN.js (src/core/)
package/src/core/start.js CHANGED
@@ -35,10 +35,31 @@ async function commandExists(command) {
35
35
  return result.code === 0;
36
36
  }
37
37
 
38
+ // ASCII Logo - Compatible with all OS and terminals
39
+ function showLogo() {
40
+ console.log("");
41
+ console.log(" _____ _____ _ _ ");
42
+ console.log(" | __ \\ |_ _| | | |");
43
+ console.log(" | | | |_ _ ___ | |_ _ _ __ ___ ___| | |");
44
+ console.log(" | | | | | | |/ _ \\| | | | | '_ \\ / _ \\/ _ \\ | |");
45
+ console.log(" | |__| | |_| | __/| | |_| | | | | __/ __/ | |");
46
+ console.log(" |_____/ \\__, |\\___|\\_/\\__,_|_| |_|\\___|\\___|_|_|");
47
+ console.log(" __/ | ");
48
+ console.log(" |___/ ");
49
+ console.log("");
50
+ }
51
+
38
52
  // Main function
39
53
  async function main() {
40
- console.clear();
41
- console.log("DevTunnel v3.0.1");
54
+ // Clear screen - works on Windows, macOS, Linux
55
+ // ANSI escape codes for clear screen + cursor to top
56
+ process.stdout.write('\x1B[2J\x1B[0f');
57
+ console.clear(); // Fallback for terminals that don't support ANSI
58
+
59
+ // Show ASCII logo
60
+ showLogo();
61
+
62
+ console.log("DevTunnel v3.0.3");
42
63
  console.log("Share your local dev servers worldwide");
43
64
  console.log("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
44
65
  console.log("Developer: maiz");