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 = const options = email: processenvOPERA_EMAIL password: processenvOPERA_PASSWORD extensionId: processenvOPERA_EXT_ID zipPath: 'my-extension.zip'
API
uploadOperaExtension(options) => Promise<void>
Upload an extension to addons.opera.com.
options.email
(string) - Email used to log inoptions.password
(string) - Password used to log inoptions.extensionId
(string) - ID of the extension to submit a new version ofoptions.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.