devtunnel-cli 3.0.10 → 3.0.11
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 +44 -9
- package/package.json +1 -1
- package/src/core/RUN.js +9 -0
- package/src/core/start.js +1 -1
package/README.md
CHANGED
|
@@ -13,12 +13,33 @@
|
|
|
13
13
|
|
|
14
14
|
## ⚡ Quick Start
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### Step-by-Step Guide
|
|
17
|
+
|
|
18
|
+
**1. Install DevTunnel (one-time setup):**
|
|
17
19
|
```bash
|
|
18
20
|
npm install -g devtunnel-cli
|
|
19
|
-
devtunnel
|
|
20
21
|
```
|
|
21
22
|
|
|
23
|
+
**2. Navigate to your project directory:**
|
|
24
|
+
```bash
|
|
25
|
+
cd your-project
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**3. Start your dev server (in one terminal):**
|
|
29
|
+
```bash
|
|
30
|
+
npm start
|
|
31
|
+
# OR
|
|
32
|
+
npm run dev
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**4. Run DevTunnel (in another terminal, same directory):**
|
|
36
|
+
```bash
|
|
37
|
+
cd your-project # Same directory where you run npm start
|
|
38
|
+
devtunnel # Auto-detects project and port!
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**That's it!** DevTunnel will automatically detect your project and running dev server port.
|
|
42
|
+
|
|
22
43
|
### Option 2: Download from GitHub
|
|
23
44
|
|
|
24
45
|
**Windows:**
|
|
@@ -54,13 +75,27 @@ npm start
|
|
|
54
75
|
|
|
55
76
|
## 💡 How to Use
|
|
56
77
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
78
|
+
**Important:** Run `devtunnel` from the same directory where you run `npm start` or `npm run dev`!
|
|
79
|
+
|
|
80
|
+
1. **Install DevTunnel** (one-time): `npm install -g devtunnel-cli`
|
|
81
|
+
2. **Go to your project**: `cd your-project`
|
|
82
|
+
3. **Start your dev server**: `npm start` or `npm run dev` (keep this running)
|
|
83
|
+
4. **Open a new terminal** in the same project directory
|
|
84
|
+
5. **Run DevTunnel**: `devtunnel` (auto-detects everything!)
|
|
85
|
+
6. **Get your public URL** and share it! 🌍
|
|
86
|
+
|
|
87
|
+
**Example:**
|
|
88
|
+
```bash
|
|
89
|
+
# Terminal 1 - Your dev server
|
|
90
|
+
cd my-react-app
|
|
91
|
+
npm run dev
|
|
92
|
+
|
|
93
|
+
# Terminal 2 - DevTunnel (same directory!)
|
|
94
|
+
cd my-react-app
|
|
95
|
+
devtunnel
|
|
96
|
+
```
|
|
62
97
|
|
|
63
|
-
**Works with any
|
|
98
|
+
**Works with any framework, API, or backend:** Vite, React, Next.js, Express, NestJS, FastAPI, Flask, Django, Spring Boot, Laravel, and any HTTP/HTTPS server!
|
|
64
99
|
|
|
65
100
|
---
|
|
66
101
|
|
|
@@ -90,7 +125,7 @@ MIT License - see [LICENSE](docs/LICENSE)
|
|
|
90
125
|
|
|
91
126
|
---
|
|
92
127
|
|
|
93
|
-
**Version 3.0.
|
|
128
|
+
**Version 3.0.10** | Made with ❤️ for developers worldwide
|
|
94
129
|
|
|
95
130
|
---
|
|
96
131
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devtunnel-cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DevTunnel - Share local dev servers worldwide. Zero configuration tunnel for any framework. Install via npm: npm install -g devtunnel-cli. Works with Vite, React, Next.js, Express, NestJS and more.",
|
|
6
6
|
"main": "src/core/start.js",
|
package/src/core/RUN.js
CHANGED
|
@@ -9,6 +9,15 @@ import { dirname, join } from "path";
|
|
|
9
9
|
const __filename = fileURLToPath(import.meta.url);
|
|
10
10
|
const __dirname = dirname(__filename);
|
|
11
11
|
|
|
12
|
+
// Suppress deprecation warnings from dependencies (harmless - from http-proxy/localtunnel)
|
|
13
|
+
const originalEmitWarning = process.emitWarning;
|
|
14
|
+
process.emitWarning = function(warning, ...args) {
|
|
15
|
+
if (typeof warning === 'string' && warning.includes('util._extend')) {
|
|
16
|
+
return; // Suppress this specific deprecation warning
|
|
17
|
+
}
|
|
18
|
+
return originalEmitWarning.call(this, warning, ...args);
|
|
19
|
+
};
|
|
20
|
+
|
|
12
21
|
// Clear screen before starting
|
|
13
22
|
process.stdout.write('\x1B[2J\x1B[0f');
|
|
14
23
|
console.clear();
|
package/src/core/start.js
CHANGED
|
@@ -184,7 +184,7 @@ async function main() {
|
|
|
184
184
|
// Show ASCII logo
|
|
185
185
|
showLogo();
|
|
186
186
|
|
|
187
|
-
console.log("DevTunnel v3.0.
|
|
187
|
+
console.log("DevTunnel v3.0.11");
|
|
188
188
|
console.log("Share your local dev servers worldwide");
|
|
189
189
|
console.log("");
|
|
190
190
|
console.log("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
|