webextension-store
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

Web Extension Store

Node library to publish to Chrome extension web store and Firefox extension web store.

Chrome

Basic Usage:

import {ChromeWebStore} from "webextension-store";

const store = new ChromeWebStore(
    extensionId,
    clientId,
    refreshToken,
    clientSecret,
);
const chrome_res = await store.uploadExisting(zipfile)
console.log(JSON.stringify(chrome_res))
const publish_res = await store.publish()
console.log(JSON.stringify(publish_res))

Access token:

Read: https://github.com/maoserr/chrome_extension_publish/blob/main/README.md

Firefox

Basic Usage:

import {MozillaWebStore} from "webextension-store";
const store = new MozillaWebStore(
    extensionId,
    apiKey,
    apiSecret
)
const ff_res = await store.uploadPackage(zipfile)
console.log(JSON.stringify(ff_res))
const new_res = await store.createNewVersion(ff_res.uuid, srcFile)
console.log(JSON.stringify(new_res))

Access token:

Read: https://github.com/maoserr/firefox_extension_publish/blob/main/README.md

Package Sidebar

Install

npm i webextension-store

Weekly Downloads

12

Version

1.1.7

License

MIT

Unpacked Size

14.6 kB

Total Files

9

Last publish

Collaborators

  • maozerr