Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

fx-marketplace-publish

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fx-marketplace-publish

Easily publish an application on the Firefox Marketplace

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

fx-marketplace-publish

Easily publish an application on the Firefox Marketplace

Install

Install the package in your project using npm install --save fx-marketplace-publish.

Documentation

publish(options)

options: Object

The options object can have the following properties:

  • path: Path to the webapp manifest in the web, or to a local packaged application
  • consumerKey: Your consumer API key for the marketplace, inherited from node-firefox-marketplace, see their documentation for more info.
  • consumerSecret: Your consumer API secret for the marketplace, inherited from node-firefox-marketplace, see their documentation for more info.
  • environment: The marketplace you want to publish to, inherited from node-firefox-marketplace, see their documentation for more info. Defaults to "development"
  • type: Optional webapp type specifier. Can be either "manifest" or "packaged". Else the type is sniffed from the file extension in the path property.

Returns a Promise, which resolves when the app is successfully published on the firefox marketplace, and gets rejected whenever an error occurs, including a failed validation.

Example

This code snippet publishes a webapp packaged in dist/my-webapp.zip in the production environment of Firefox Marketplace (http://marketplace.firefox.com).

var { publish } = require("fx-marketplace-publish");

publish({
  path: 'dist/my-webapp.zip',
  consumerKey: "myConsumerKey",
  consumerSecret: "myConsumerSecret",
  environment: "production"
});

License

This project is licensed under the MPL-2.0.

Keywords

firefox

FAQs

Package last updated on 23 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts