3.0.0 • Published 7 years ago

chrome-extension-deploy v3.0.0

Weekly downloads
33
License
MIT
Repository
github
Last release
7 years ago

chrome-extension-deploy Build Status Coverage Status

Deploy Chrome extensions to the Chrome Web Store.

Installation

npm install --save-dev chrome-extension-deploy

Usage

Note: chrome-extension-deploy requires Promise support. If your environment does not natively support promises, you'll need to provide your own polyfill.

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
});
3.0.0

7 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago