Tools for rapid development of WebExtension Experiments based on a schema.json
API definition.
- generateStubApi - generates a stub api.js based on
schema.json
- documentSchema - generates documentation in Markdown based on
schema.json
- verifyWeeSchema - verifies that
schema.json
is a valid WebExtension Experiments schema
For a usage example, see the npm run generate
command in ./package.json and the example files in ./example/.
npm install --save-dev motin/webext-experiment-utils#develop
- Put all the privileged code of your add-on in
src/privileged
as a best practice - The 'Firefox privileged' modules cannot use WebExtension apis (
browserAction
,management
, etc.). Use abackground.js
script (using messages and events) to co-ordinate multiple privileged modules.