Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erikdesjardins/chrome-extension-deploy
Deploy Chrome extensions to the Chrome Web Store.
https://github.com/erikdesjardins/chrome-extension-deploy
Last synced: about 2 months ago
JSON representation
Deploy Chrome extensions to the Chrome Web Store.
- Host: GitHub
- URL: https://github.com/erikdesjardins/chrome-extension-deploy
- Owner: erikdesjardins
- License: mit
- Created: 2016-03-11T02:35:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-02T22:51:09.000Z (about 5 years ago)
- Last Synced: 2024-10-25T22:51:40.114Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/chrome-extension-deploy
- Size: 23.4 KB
- Stars: 25
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-browser-extensions-and-apps - chrome-extension-deploy - programmatic deploy extensions to Chrome Web Store. (Tools / Publishing)
README
# chrome-extension-deploy
Deploy Chrome extensions to the Chrome Web Store.
You should probably use [chrome-webstore-upload](https://github.com/DrewML/chrome-webstore-upload) or [chrome-webstore-upload-cli](https://github.com/DrewML/chrome-webstore-upload-cli) instead.
## Installation
`npm install --save-dev chrome-extension-deploy`
## Usage
```js
var fs = require('fs');
var deploy = require('chrome-extension-deploy');deploy({
// obtained by following the instructions here:
// https://developer.chrome.com/webstore/using_webstore_api#beforeyoubegin
clientId: 'myClientId',
clientSecret: 'myClientSecret',
refreshToken: 'myRefreshToken',// the ID of your extension
id: 'kpohkfndjhilfenfoljcpcacccfngemc',// a Buffer or string containing your zipped extension
zip: fs.readFileSync('path/to/zipped/extension.zip'),// whether to publish your extension to the public or trusted testers
// OPTIONAL (default `deploy.PUBLIC`)
to: deploy.TRUSTED_TESTERS
}).then(function() {
// success!
}, function(err) {
// failure :(
// errors are sanitized, so your tokens will not be leaked
});
```