specv 0.4.1 → 0.4.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/README.md CHANGED
@@ -14,20 +14,14 @@ A CLI tool that previews Markdown files in the current directory with GitHub-sty
14
14
  - GitHub dark theme color scheme
15
15
  - Automatic port detection (tries next port on conflict)
16
16
 
17
- ## Install
18
-
19
- ```bash
20
- npm install -g specv
21
- ```
22
-
23
17
  ## Usage
24
18
 
25
19
  ```bash
26
20
  # Preview .md files in the current directory
27
- specv
21
+ npx specv@latest
28
22
 
29
23
  # Specify a port
30
- specv -p 3000
24
+ npx specv@latest -p 3000
31
25
  ```
32
26
 
33
27
  A browser window opens automatically, rendering your Markdown files with GitHub-style formatting.
@@ -440,8 +440,8 @@ program.name("specv").description("Local Markdown preview with GitHub-style rend
440
440
  console.log("Press Ctrl+C to stop");
441
441
  try {
442
442
  await openInBrowser(url);
443
- } catch (error) {
444
- console.error("Failed to open browser:", error);
443
+ } catch {
444
+ console.log(`Open ${url} in your browser`);
445
445
  }
446
446
  }
447
447
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specv",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Local Markdown preview with GitHub-style rendering",
5
5
  "keywords": [
6
6
  "cli",