Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linusu/upload-opera-extension
Submit an update to a Opera Extension with one simple function call
https://github.com/linusu/upload-opera-extension
Last synced: 4 days ago
JSON representation
Submit an update to a Opera Extension with one simple function call
- Host: GitHub
- URL: https://github.com/linusu/upload-opera-extension
- Owner: LinusU
- Created: 2018-02-09T17:13:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-12T19:37:26.000Z (over 3 years ago)
- Last Synced: 2024-11-02T10:23:02.279Z (11 days ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 8
- Watchers: 5
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Upload Opera Extension
Submit an update to an Opera Extension with one simple function call.
## Installation
```sh
npm install --save upload-opera-extension
```## Usage
```js
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 moderation 🙌')
})
```## API
### `uploadOperaExtension(options) => Promise`
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 submittedThe 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.