Extension
Plug-and-play, zero-config, cross-browser extension development tool.
README
Extension.js
Make it very easy to develop cross-browser extensions.
Create cross-browser extensions with no build configuration.
Create A New Extension
- ```bash
- npx extension create my-extension
- cd my-extension
- npm run dev
- ```
Web Standards and Modern JavaScript Support
Get Started Immediately
Use Chrome to start developing an extension from Chrome Extension Samples
See the example below where we request the sample page-redder from Google Chrome Extension Samples.
- ```bash
- npx extension dev https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/functional-samples/sample.page-redder --browser=edge
- ```
See the example below where we request the sample magic8ball from from Google Chrome Extension Samples with Edge as the runtime browser.
- ```bash
- npx extension dev https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/api-samples/topSites/magic8ball --browser=edge
- ```
See the example below where we request the sample Apply CSS from MDN WebExtensions Examples using Edge as the runtime browser.
- ```bash
- npx extension dev https://github.com/mdn/webextensions-examples/tree/main/apply-css --browser=edge --polyfill=true
- ```
I have An Extension
- ```bash
- npm install extension --save-dev
- ```
- ```json
- {
- "scripts": {
- "build": "extension build",
- "dev": "extension dev",
- "start": "extension start"
- },
- "devDependencies": {
- // ...other dependencies
- "extension": "latest"
- }
- }
- ```
Hint
Pass --browser="all" to load all available browsers at once.
- ```sh
- extension dev --browser=all
- ```