genconf-firefox-lockedprefs-pmb

Render a dictionary of prefs as Firefox locked pref config file format.


License
ISC
Install
npm install genconf-firefox-lockedprefs-pmb@0.1.3

Documentation

genconf-firefox-lockedprefs-pmb

Render a dictionary of prefs as Firefox locked pref config file format.

API

This module exports one function:

fmtLockedPref(opt, prefs)

opt is an options object that supports these keys:

  • ffVerMajor (required): Firefox major version, as an integer number.

prefs is a dictionary of prefs you want to lock.

Returns an array of prefs file lines, whose toString method is one that joins them with newlines and also appends a trailing newline.

Usage

see test/usage.mjs

Known issues

  • Needs more/better tests and docs.

 

License

ISC