# edge-addons

> Microsoft Edge Addons API for Node.js

Latest version **0.6.0** (published 2022-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install edge-addons
pnpm add edge-addons
yarn add edge-addons
bun add edge-addons
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2022-04-19 |
| First published | 2022-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=16.14 |
| Dependencies | 1 |
| Unpacked size | 11.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Plasmo Corp. <foss@plasmo.com> |
| Maintainers | louisgv |
| Keywords | edge, webstore, upload, add-ons |

## Links

- npm: https://www.npmjs.com/package/edge-addons
- Repository: https://github.com/plasmo-corp/edge-webstore-upload
- npm.io page: https://npm.io/package/edge-addons

## Dependencies (1)

- [got](https://npm.io/package/got.md) 12.0.3

## Recent versions

- 0.6.0 (latest) — 2022-04-19

## README

# 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). Alias of [`@plasmo-corp/ewu`](https://www.npmjs.com/package/@plasmo-corp/ewu).

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 edge-addons
```

## 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 { EdgeWebstoreClient } from "edge-addons"

const client = new EdgeWebstoreClient({
  productId,
  clientId,
  clientSecret,
  accessTokenUrl
})

await client.submit({
  filePath: "./dist/my-extension.zip",
  notes: "Developer notes"
})
```

## License

[MIT](./license) 🖖 [Plasmo](https://www.plasmo.com)

---
_Source: https://npm.io/package/edge-addons · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
