Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

convert-manifest-format

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-manifest-format

Converts from one v3 Manifest format to another (Chrome or Firefox)

latest
Source
npmnpm
Version
0.9.0
Version published
Weekly downloads
8
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

convert-manifest-format

npm

Converts between Firefox and Chrome's flavor of WebExtensions Manifest v3.

The following changes may be made:

  • Firefox currently still requires a background.scripts array, while Chrome requires a background.service_worker string.

Note that if you are moving from Firefox, you should import all of your scripts besides the main one so that there is only one script left in background.scripts.

See https://stackoverflow.com/a/75203925/271577 for more background.

  • If the Firefox mode is chosen and incognito: "split" is found, options will be given to keep, remove, or change the value (since "split" is currently not supported).

  • If the Firefox mode is chosen, any options_page value will be converted to "options_ui": {"page": "..."}.

Install

npm i -D convert-manifest-format

Usage

To convert to Chrome:

convert-manifest-format --chrome

To convert to Firefox:

convert-manifest-format --firefox

You can control the output spacing as follows:

convert-manifest-format --firefox --spacing <FORMAT>

...where <FORMAT> can be "tab" or the desired number of spaces. The default is 2 spaces.

Keywords

manifest

FAQs

Package last updated on 21 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts