Skip to content

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

Notifications You must be signed in to change notification settings

mk-pmb/genconf-firefox-lockedprefs-pmb-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published