SHA256
1
0
Fork
You've already forked diffprefs
0
Simple CLI utility to work with Mozilla preferences overrides aka userprefs
  • JavaScript 96.2%
  • Dockerfile 3.8%
2026年02月05日 13:33:37 +00:00
bin diffprefs 0.1.0 2026年02月04日 02:54:03 +00:00
.dockerignore add Containerfile 2026年02月04日 04:45:15 +00:00
.gitignore diffprefs 0.1.0 2026年02月04日 02:54:03 +00:00
Containerfile add Containerfile 2026年02月04日 04:45:15 +00:00
index.js is esm now 2026年02月05日 13:33:37 +00:00
LICENSE diffprefs 0.1.1 2026年02月04日 04:27:07 +00:00
package.json is esm now 2026年02月05日 13:33:37 +00:00
pnpm-lock.yaml diffprefs 0.1.0 2026年02月04日 02:54:03 +00:00
README.md diffprefs 0.1.1 2026年02月04日 04:27:07 +00:00

diffprefs

Tool for simple diffing and validation of Firefox userprefs js.

It will take two prefs files and print the difference to stdout. By default it will also do some basic validation and warn for duplicates in input files.

Usage

$ ./bin/diffprefs --help
 usage: diffprefs [options...] <a.js> <b.js>
 options:
 -h, --help: this message
 -c, --color: colorize output
 -i, --ignore-type: only consider actual keys and values; ignore if it's a defaultPref or lockPref etc
 -n, --no-lint: suppress validation warning
 -s, --silent: skip validation and suppress warnings (implies -i, -n)

Example

$ ./bin/diffprefs prefs/ajs prefs/b.js

Warning

Firefox userprefs files consist of JavaScript code. This tools treats input as trusted and evaluates the JS in order to produce the diff. Don't run this tool on arbitrary untrusted input in a sensitive context.