@vaibhavjha/qrfy 1.0.6 → 1.0.8

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 (3) hide show
  1. package/README.md +18 -5
  2. package/lib/qr.js +3 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -20,11 +20,11 @@ Stop typing IPs. Start scanning.
20
20
  ## Quick Start
21
21
 
22
22
  ```bash
23
- # Install globally
24
- npm install -g @vaibhavjha/qrfy
23
+ # Install as a dev dependency
24
+ npm install -D @vaibhavjha/qrfy
25
25
 
26
26
  # Run with your dev server
27
- qrfy next dev
27
+ npx qrfy next dev
28
28
  ```
29
29
 
30
30
  That's it. A QR code appears in your terminal. Scan it. Done.
@@ -60,13 +60,26 @@ $ qrfy next dev
60
60
  ## Install
61
61
 
62
62
  ```bash
63
- npm install -g @vaibhavjha/qrfy
63
+ # As a dev dependency
64
+ npm install -D @vaibhavjha/qrfy
64
65
  ```
65
66
 
66
67
  <details>
67
68
  <summary><b>yarn / pnpm / bun</b></summary>
68
69
 
69
70
  ```bash
71
+ yarn add -D @vaibhavjha/qrfy
72
+ pnpm add -D @vaibhavjha/qrfy
73
+ bun add -d @vaibhavjha/qrfy
74
+ ```
75
+
76
+ </details>
77
+
78
+ <details>
79
+ <summary><b>Install globally (optional)</b></summary>
80
+
81
+ ```bash
82
+ npm install -g @vaibhavjha/qrfy
70
83
  yarn global add @vaibhavjha/qrfy
71
84
  pnpm add -g @vaibhavjha/qrfy
72
85
  bun add -g @vaibhavjha/qrfy
@@ -161,7 +174,7 @@ qrfy --version, -v # Show version
161
174
  | | Requirement |
162
175
  |---|---|
163
176
  | **Runtime** | Node.js >= 14 |
164
- | **Network** | Both devices on the same WiFi |
177
+ | **Network** | Same WiFi |
165
178
  | **OS** | macOS, Linux, Windows |
166
179
 
167
180
  ---
package/lib/qr.js CHANGED
@@ -2,10 +2,10 @@ const qrcode = require("qrcode-terminal");
2
2
 
3
3
  function displayQR(localUrl, mobileUrl) {
4
4
  console.log("");
5
- console.log("\x1b[1m\x1b[32m QRfy connected\x1b[0m");
5
+ console.log("\x1b[1m\x1b[34m QRfy connected\x1b[0m");
6
6
  console.log("");
7
- console.log(` Local: \x1b[36m${localUrl}\x1b[0m`);
8
- console.log(` Mobile: \x1b[36m${mobileUrl}\x1b[0m`);
7
+ console.log(` Local: \x1b[37m${localUrl}\x1b[0m`);
8
+ console.log(` Mobile: \x1b[32m${mobileUrl}\x1b[0m`);
9
9
  console.log("");
10
10
  console.log(" Scan to open on your phone:");
11
11
  console.log("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaibhavjha/qrfy",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Scan your dev server instantly - QR code for local dev URLs",
5
5
  "author": "Vaibhav Jha (https://github.com/vaibhavjha-dev)",
6
6
  "repository": {