Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Nov 13, 2024
1 parent 21af690 commit 1c3e46a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
22 changes: 22 additions & 0 deletions packages/electron-chrome-web-store/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# electron-chrome-web-store

Install and manage Chrome extensions from the Chrome Web Store.

## Usage

```js
const { app, BrowserWindow, session } = require('electron')
const { setupChromeWebStore } = require('electron-chrome-web-store')

(async function main() {
await app.whenReady()

const browserSession = session.defaultSession
const browserWindow = new BrowserWindow({
webPreferences: {
session: browserSession
}
})

setupChromeWebStore(browserSession)

browserWindow.loadURL('https://chromewebstore.google.com/')
}())
```
7 changes: 3 additions & 4 deletions packages/electron-chrome-web-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "Download extensions from the Chrome Web Store in Electron",
"main": "dist/browser/index.js",
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
"build": "tsc"
},
"keywords": [
"chrome",
Expand All @@ -14,8 +13,8 @@
"webstore",
"extensions"
],
"author": "Samuel Maddock",
"license": "ISC",
"author": "Samuel Maddock <sam@samuelmaddock.com>",
"license": "UNLICENSED",
"devDependencies": {
"typescript": "^5.6.3"
},
Expand Down

0 comments on commit 1c3e46a

Please sign in to comment.