# fx-marketplace-publish

> Easily publish an application on the Firefox Marketplace

Latest version **0.1.2** (published 2015-09-23) · MPL-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install fx-marketplace-publish
pnpm add fx-marketplace-publish
yarn add fx-marketplace-publish
bun add fx-marketplace-publish
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-09-23 |
| First published | 2015-06-23 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | freaktechnik |
| Maintainers | freaktechnik |
| Keywords | firefox, marketplace, webapp, publish |

## Links

- npm: https://www.npmjs.com/package/fx-marketplace-publish
- Repository: https://github.com/freaktechnik/fx-marketplace-publish
- Homepage: https://github.com/freaktechnik/fx-marketplace-publish#readme
- Issues: https://github.com/freaktechnik/fx-marketplace-publish/issues
- npm.io page: https://npm.io/package/fx-marketplace-publish

## Dependencies (1)

- [node-firefox-marketplace](https://npm.io/package/node-firefox-marketplace.md) >0.0.2

## Recent versions

- 0.1.2 (latest) — 2015-09-23
- 0.1.0 — 2015-06-23

## README

# 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).
```js
var { publish } = require("fx-marketplace-publish");

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

## [License](LICENSE)
This project is licensed under the MPL-2.0.

[node-firefox-marketplace]: https://www.npmjs.com/package/node-firefox-marketplace

---
_Source: https://npm.io/package/fx-marketplace-publish · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
