A module for writing cross-browser extensions
Most browsers (other than Safari) have implemented the WebExtensions API for writing browser extensions.
Unfortunately, they've often hidden that common API under a variety of differently named global objects.
When you import
extensionizer, it grabs those
WebExtension APIs from wherever they're hiding, and hangs them all on a singleton object that it returns to you.
extensionizer instead of the browser specific extension prefixing.
First install with
npm install extensionizer -S.
const extension =// Ever notice you can't use normal hyperlinks in an extension?// Now it's easy:extensiontabsconst manifest = extensionruntime
For the full list of supported methods, refer to the MDN API documentation.
Install Mocha (
npm install -g mocha).