letstunnel 0.1.6 → 0.1.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.
Files changed (2) hide show
  1. package/bin/cli.js +7 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -47,8 +47,14 @@ function getBinaryPath() {
47
47
 
48
48
  const binary = getBinaryPath();
49
49
 
50
+ // Allow shorthand: `letstunnel 3000` → `lt up --port 3000`
51
+ let args = process.argv.slice(2);
52
+ if (args.length >= 1 && /^\d+$/.test(args[0])) {
53
+ args = ["up", "--port", ...args];
54
+ }
55
+
50
56
  try {
51
- execFileSync(binary, process.argv.slice(2), { stdio: "inherit" });
57
+ execFileSync(binary, args, { stdio: "inherit" });
52
58
  } catch (e) {
53
59
  if (e.status !== undefined) {
54
60
  process.exit(e.status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "letstunnel",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Expose your localhost to the world. Public URLs, .local domains, request inspector, and scenario recording.",
5
5
  "keywords": [
6
6
  "tunnel",