@mz1999/defuddle 0.14.1 → 0.14.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.
Files changed (2) hide show
  1. package/README.md +11 -11
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -69,25 +69,25 @@ Defuddle includes a command-line interface for parsing web pages directly from t
69
69
 
70
70
  ```bash
71
71
  # Parse a local HTML file
72
- npx defuddle parse page.html
72
+ npx defuddle-proxy parse page.html
73
73
 
74
74
  # Parse a URL
75
- npx defuddle parse https://example.com/article
75
+ npx defuddle-proxy parse https://example.com/article
76
76
 
77
77
  # Output as markdown
78
- npx defuddle parse page.html --markdown
78
+ npx defuddle-proxy parse page.html --markdown
79
79
 
80
80
  # Output as JSON with metadata
81
- npx defuddle parse page.html --json
81
+ npx defuddle-proxy parse page.html --json
82
82
 
83
83
  # Extract a specific property
84
- npx defuddle parse page.html --property title
84
+ npx defuddle-proxy parse page.html --property title
85
85
 
86
86
  # Save output to a file
87
- npx defuddle parse page.html --output result.html
87
+ npx defuddle-proxy parse page.html --output result.html
88
88
 
89
89
  # Enable debug mode
90
- npx defuddle parse page.html --debug
90
+ npx defuddle-proxy parse page.html --debug
91
91
  ```
92
92
 
93
93
  #### CLI Options
@@ -114,7 +114,7 @@ export DEFUDDLE_PROXY=http://proxy.example.com:8080
114
114
  export DEFUDDLE_PROXY=http://username:password@proxy.example.com:8080
115
115
 
116
116
  # Parse URL through proxy
117
- npx defuddle parse https://example.com/article
117
+ npx defuddle-proxy parse https://example.com/article
118
118
  ```
119
119
 
120
120
  Proxy errors are silently ignored unless `--debug` is enabled, in which case fallback to direct connection is logged.
@@ -139,16 +139,16 @@ npm install jsdom
139
139
 
140
140
  ### CLI installation
141
141
 
142
- To use the `defuddle` command globally, install it with the `-g` flag:
142
+ To use the `defuddle-proxy` command globally, install it with the `-g` flag:
143
143
 
144
144
  ```bash
145
- npm install -g defuddle
145
+ npm install -g @mz1999/defuddle
146
146
  ```
147
147
 
148
148
  Or use `npx` to run the CLI without installing globally:
149
149
 
150
150
  ```bash
151
- npx defuddle parse https://example.com/article
151
+ npx defuddle-proxy parse https://example.com/article
152
152
  ```
153
153
 
154
154
  ## Response
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@mz1999/defuddle",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "Extract article content and metadata from web pages (with HTTP proxy support).",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "main": "dist/index.js",
9
9
  "bin": {
10
- "defuddle": "dist/cli.js"
10
+ "defuddle-proxy": "dist/cli.js"
11
11
  },
12
12
  "module": "dist/index.js",
13
13
  "types": "dist/index.d.ts",