firefox-extension-deploy

1.1.2 • Public • Published

firefox-extension-deploy

Deploy Firefox extensions to AMO.

You should probably use jpm sign or web-ext sign instead.

Installation

npm install --save-dev firefox-extension-deploy

Usage

var fs = require('fs');
var deploy = require('firefox-extension-deploy');
 
deploy({
  // obtained by following the instructions here:
  // https://addons-server.readthedocs.io/en/latest/topics/api/auth.html
  // or from this page:
  // https://addons.mozilla.org/en-US/developers/addon/api/key/
  issuer: 'myIssuer',
  secret: 'mySecret',
 
  // the ID of your extension
  id: 'exampleId@jetpack',
  // the version to publish
  version: '1.0.0',
 
  // a ReadStream containing a .zip (WebExtensions) or .xpi (Add-on SDK)
  src: fs.createReadStream('path/to/zipped/extension.zip'),
}).then(function() {
  // success!
}, function(err) {
  // failure :(
});

Dependents (1)

Package Sidebar

Install

npm i firefox-extension-deploy

Weekly Downloads

110

Version

1.1.2

License

MIT

Unpacked Size

5.5 kB

Total Files

4

Last publish

Collaborators

  • erikdesjardins