# chromepack

> A tool for packaging Chrome Extensions

Latest version **1.0.1** (published 2017-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install chromepack
pnpm add chromepack
yarn add chromepack
bun add chromepack
```

Provides the command `chromepack`.

## 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 | 1.0.1 |
| Published | 2017-10-16 |
| First published | 2017-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Samuel Steele |
| Maintainers | cryptoc1 |

## Links

- npm: https://www.npmjs.com/package/chromepack
- Repository: https://github.com/Cryptoc1/chromepack
- Homepage: https://github.com/Cryptoc1/chromepack#readme
- Issues: https://github.com/Cryptoc1/chromepack/issues
- npm.io page: https://npm.io/package/chromepack

## Dependencies (3)

- [globby](https://npm.io/package/globby.md) ^6.1.0
- [archiver](https://npm.io/package/archiver.md) ^2.0.3
- [optimist](https://npm.io/package/optimist.md) ^0.6.1

## Recent versions

- 1.0.1 (latest) — 2017-10-16
- 1.0.0 — 2017-10-16

## README

# chromepack

Chromepack is a small tool to simplify deployment of Chrome Extensions.

`$ npm install -g chromepack`

`$ chromepack -c chromepack.config.json`

### Usage

Simply run `chromepack` in a directory containing a `chromepack.config.json` file, or use `chromepack -c` to specify a path to your `chromepack.config.json` file.

Run `chromepack -h` to see all options.

### Configuration

The following are the options for a `chromepack.config.json` file:

| Field | Type | Description |
|-------|------|-------------|
| `manifest` | `string` | Specify the path to the manifest.json |
| `output.name` | `string` | The name of the `.zip` archive that is generated. Supports formatting of `[name]`, `[version]`, `[timestamp]` variables. |
| `output.path` | `string` | The path to the directory to generate the `.zip` archive in. |
| `src` | `Array<string>` | An array of files to be included in the archive, along with files calculated from the `manifest.json`. Supports glob notation. |
| `tasks.pre` | `Array<string>` | A array of commands to run BEFORE packing |
| `tasks.post` | `Array<string>` | A array of commands to run AFTER packing |

Example:

```json
{
  "manifest": "./manifest.json",
  "output": {
    "name": "[name].[version]"
  },
  "src": [ "!dist/*.map" ],
  "tasks": {
    "pre": [ "npm run build" ]
  }
}
```

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