# chrome-extension-deploy

> Deploy Chrome extensions to the Chrome Web Store.

Latest version **3.0.0** (published 2017-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install chrome-extension-deploy
pnpm add chrome-extension-deploy
yarn add chrome-extension-deploy
bun add chrome-extension-deploy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2017-02-13 |
| First published | 2016-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | Erik Desjardins |
| Maintainers | erikdesjardins |

## Links

- npm: https://www.npmjs.com/package/chrome-extension-deploy
- Repository: https://github.com/erikdesjardins/chrome-extension-deploy
- Homepage: https://github.com/erikdesjardins/chrome-extension-deploy#readme
- Issues: https://github.com/erikdesjardins/chrome-extension-deploy/issues
- npm.io page: https://npm.io/package/chrome-extension-deploy

## Dependencies (1)

- [superagent](https://npm.io/package/superagent.md) ^3.4.1

## Recent versions

- 3.0.0 (latest) — 2017-02-13
- 2.0.3 — 2016-07-26
- 2.0.2 — 2016-07-26
- 2.0.1 — 2016-04-05
- 2.0.0 — 2016-03-12
- 1.0.0 — 2016-03-12
- 0.0.1 — 2016-03-12

## README

# chrome-extension-deploy [![Build Status](https://travis-ci.org/erikdesjardins/chrome-extension-deploy.svg?branch=master)](https://travis-ci.org/erikdesjardins/chrome-extension-deploy) [![Coverage Status](https://coveralls.io/repos/github/erikdesjardins/chrome-extension-deploy/badge.svg?branch=master)](https://coveralls.io/github/erikdesjardins/chrome-extension-deploy?branch=master)

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](https://github.com/floatdrop/pinkie).

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

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