Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/plasmohq/edge-addons-api

🐓 Edge Addons API Library for nodejs
https://github.com/plasmohq/edge-addons-api

addon browser-extension edge

Last synced: about 1 month ago
JSON representation

🐓 Edge Addons API Library for nodejs

Awesome Lists containing this project

README

        



plasmo logo banner



See License


NPM Install


Follow PlasmoHQ on Twitter


Watch our Live DEMO every Friday


Join our Discord for support and chat about our projects


typescript-action status

# Microsoft Edge Addons API for NodeJS

A tiny but powerful module from [plasmo](https://www.plasmo.com/) to publish browser add-ons to the [Microsoft Edge Web Store](https://microsoftedge.microsoft.com/addons/Microsoft-Edge-Extensions-Home).

This module uses [got](https://github.com/sindresorhus/got) to upload, check status, and submit an extension to the Microsoft Edge Webstore, using the [Microsoft Edge Add-ons API](https://docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/publish/api/using-addons-api).

Features include:

- TypeScript API
- ESM (if you need cjs, please file an issue)
- Pinned dependencies, updated via renovatebot

## Installation

```
npm install --save-dev @plasmohq/edge-addons-api
```

## Usage

### Authentication

You'll need to get a `productId`, `clientId`, `clientSecret`, and `accessTokenUrl` for your project.

You can get these for your project by following the [Microsoft Edge Add-Ons API guide](https://docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/publish/api/using-addons-api).

### Node.js API

```ts
import { EdgeAddonsAPI } from "@plasmohq/edge-addons-api"

const client = new EdgeAddonsAPI({
productId,
clientId,
clientSecret,
accessTokenUrl
})

await client.submit({
filePath: "./dist/my-extension.zip",
notes: "Developer notes"
})
```

## License

[MIT](./license) 🖖 [Plasmo](https://www.plasmo.com)