upload-opera-extension

1.0.3 • Public • Published

Upload Opera Extension

Submit an update to a Opera Extension with one simple function call.

Installation

npm install --save upload-opera-extension

Usage

const uploadOperaExtension = require('upload-opera-extension')
 
const options = {
  email: process.env.OPERA_EMAIL,
  password: process.env.OPERA_PASSWORD,
  extensionId: process.env.OPERA_EXT_ID,
  zipPath: 'my-extension.zip'
}
 
uploadOperaExtension(options).then(() => {
  console.log('Extension submitted for modernation 🙌')
})

API

uploadOperaExtension(options) => Promise<void>

Upload an extension to addons.opera.com.

  • options.email (string) - Email used to log in
  • options.password (string) - Password used to log in
  • options.extensionId (string) - ID of the extension to submit a new version of
  • options.zipPath (string) - Path to the zip file that will be submitted

The extension ID can be found by inspecting the URL of the extension in the developer dashboard.

Returns a Promise that will either reject with an error, or resolve to undefined.

Debugging

If an environmental variable named DEBUG_UPLOAD_OPERA_EXTENSION is set to a non-empty value, a Chrome window will be visible during the execution and then stay open after the function is done.

Readme

Keywords

none

Package Sidebar

Install

npm i upload-opera-extension

Weekly Downloads

11

Version

1.0.3

License

MIT

Unpacked Size

3.43 kB

Total Files

3

Last publish

Collaborators

  • linusu