Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobby1030/crx-to-xpi
A simple tool that can help you port WebExtensions to Firefox easily
https://github.com/bobby1030/crx-to-xpi
chrome crx firefox port-webextensions webextension xpi
Last synced: about 1 month ago
JSON representation
A simple tool that can help you port WebExtensions to Firefox easily
- Host: GitHub
- URL: https://github.com/bobby1030/crx-to-xpi
- Owner: bobby1030
- License: mit
- Created: 2017-02-26T10:44:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-30T09:48:37.000Z (over 7 years ago)
- Last Synced: 2024-09-30T17:02:45.782Z (about 1 month ago)
- Topics: chrome, crx, firefox, port-webextensions, webextension, xpi
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 33
- Watchers: 2
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crx-to-xpi
> A simple tool that can help you port WebExtensions to Firefox easily.[![npm version](https://badge.fury.io/js/crx-to-xpi.svg)](https://www.npmjs.com/package/crx-to-xpi)
## Dependencies
* `node`
* `npm` (or `yarn`, whatever)## Usage
```shell
npm install -g crx-to-xpi
crx-to-xpi your-addon.crx
```## TODO
* Implement a better path processing method to support non-Unix-like environment.
* Give some warnings when the extension uses an WebExtension API that hasn't been supported by Firefox.
* Allowing the source code of the extension to be used as input.## How does it work?
This project helps you declare gecko support in `manifest.json`, and then zip up the source code into `.xpi` format.
Reference: [https://hacks.mozilla.org/2015/10/porting-chrome-extensions-to-firefox-with-webextensions/](https://hacks.mozilla.org/2015/10/porting-chrome-extensions-to-firefox-with-webextensions/)