fop-cli 5.2.1 → 5.3.1

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 +28 -0
  2. package/install.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -126,6 +126,9 @@ fop -n ~/easylist ~/easyprivacy ~/fanboy-addon
126
126
  | `--config-file=` | Custom config file path |
127
127
  | `--show-config` | Show applied configuration and exit |
128
128
  | `--git-binary=<path>` | Path to git binary (default: git in PATH) |
129
+ | `--benchmark` | Benchmark sorting performance (3 iterations, dry-run) |
130
+ | `--abp-convert` | Convert ABP extended selectors to uBO format |
131
+ | `--convert-trusted` | Convert trusted scriptlets to non-trusted when value is safe |
129
132
  | `-h, --help` | Show help message |
130
133
  | `-V, --version` | Show version number |
131
134
 
@@ -191,6 +194,9 @@ pr-show-changes = false
191
194
  # Base branch for PR (default: auto-detect)
192
195
  git-pr-branch =
193
196
 
197
+ # Convert trusted scriptlets to non-trusted when value is safe
198
+ convert-trusted = false
199
+
194
200
  # Fix cosmetic typos during sort
195
201
  fix-typos = false
196
202
 
@@ -228,6 +234,28 @@ history = A: ,P: ,M: Update,M: Cleanup,M: Sort,M: Adjust
228
234
 
229
235
  Command line arguments override config file settings.
230
236
 
237
+ ### Per-File Overrides
238
+
239
+ Add `[filename]` sections to override settings for specific files:
240
+
241
+ ```ini
242
+ # Global settings apply to all files
243
+ fix-typos = true
244
+
245
+ # Override settings for specific files
246
+ [adguard_base.txt]
247
+ parse-adguard = true
248
+
249
+ [hosts.txt]
250
+ localhost = true
251
+
252
+ [easylist.txt]
253
+ add-checksum = true
254
+ add-timestamp = true
255
+ ```
256
+
257
+ Supported per-file options: `no-sort`, `alt-sort`, `parse-adguard`, `localhost`, `add-checksum`, `add-timestamp`, `no-ubo-convert`, `abp-convert`, `convert-trusted`, `keep-empty-lines`, `ignore-dot-domains`, `fix-typos`.
258
+
231
259
  ## Platform Support
232
260
 
233
261
  ### Pre-built Binaries
package/install.js CHANGED
@@ -7,7 +7,7 @@ const path = require('path');
7
7
  const { execSync } = require('child_process');
8
8
 
9
9
  // Configuration - UPDATE THESE FOR YOUR RELEASE
10
- const VERSION = '5.2.1';
10
+ const VERSION = '5.3.1';
11
11
  const GITHUB_REPO = 'ryanbr/fop-rs'; // Change to your repo
12
12
  const BINARY_NAME = 'fop';
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fop-cli",
3
- "version": "5.2.1",
3
+ "version": "5.3.1",
4
4
  "description": "Filter Orderer and Preener - A tool for sorting and cleaning ad-blocking filter lists",
5
5
  "keywords": [
6
6
  "adblock",