Format manifest.json to use on WebExtension from Chrome Extension
% npm install -g wemf
Usage: wemf <packageJsonPath> [options]
Options:
-h, --help output usage information
-V, --version output the version number
--validate Only validate manifest.json
-O --output <path> Output manifest.json path
-U --update Update manifest.json itself
% wemf /path/to/chrome-ext/manifest.json -O /path/to/firefox-ext/manifest.json
% wemf /path/to/firefox-ext/manifest.json --validate
if it has no problem, return nothing
If you want to fill columns (ex: applications
) automatically, you should write webextension
column on project's package.json
.
Example
{
"name": "hoge",
...
"webextension": {
"applications": {
"gecko": {
"id": "sample-extension@example.org",
"strict_min_version": "47.0a1"
}
}
}
}
Please check newest information
- WebExtensions - MozillaWiki
- Are we Web Extensions yet?
- Chrome incompatibilities - Mozilla | MDN
- manifest.json - Mozilla | MDN
Welcome your Pull Request!!
Please fork it and send Pull Request to this repository.
% npm test