nwjs-crx
v1.0.2
Published
Install Chrome/Edge extension for NW.js.
Downloads
4
Maintainers
Readme
nwjs-crx
Install Chrome/Edge extension for NW.js.
Install
npm install nwjs-crx
Usage
- Install extension:
nwjs-crx install olofadcdnkkjdfgjcmjaadnlehnnihnl edge
- Add extension path to
package.json
of your NW.js app:
"chromium-args": "--load-extension='./node_modules/nwjs-crx/extensions/vue.js-devtools'"
Install extension
CLI
# Install by extension url:
nwjs-crx install $url
# Install by extension id and source ("chrome" or "edge"):
nwjs-crx install $extensionId $source
# List installed extensions:
nwjs-crx list
Programming
const nwCrx = require("nwjs-crx");
// Install by extension url
nwCrx.install(
"https://microsoftedge.microsoft.com/addons/detail/vuejs-devtools/olofadcdnkkjdfgjcmjaadnlehnnihnl"
);
// Install by extension id and source ("chrome" or "edge")
nwCrx.install("olofadcdnkkjdfgjcmjaadnlehnnihnl", "edge");
// List installed extensions
console.log(nwCrx.list());
Use extension
Add extension path to package.json
of your NW.js app:
"chromium-args": "--load-extension='extension1,extension2'"