# jetpack-id

> Creates an ID from a Firefox Jetpack manifest

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

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

## Install

```sh
npm install jetpack-id
pnpm add jetpack-id
yarn add jetpack-id
bun add jetpack-id
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-04-09 |
| First published | 2014-02-12 |
| Weekly downloads | 0 |
| License | MPL 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jordan Santell |
| Maintainers | jsantell |
| Keywords | jetpack, addon, mozilla, firefox |

## Links

- npm: https://www.npmjs.com/package/jetpack-id
- Repository: http://github.com/jsantell/jetpack-id
- Homepage: https://github.com/jsantell/jetpack-id
- Issues: https://github.com/jsantell/jetpack-id/issues
- npm.io page: https://npm.io/package/jetpack-id

## Recent versions

- 1.0.0 (latest) — 2015-04-09
- 0.0.4 — 2014-07-08
- 0.0.3 — 2014-07-08
- 0.0.2 — 2014-03-21
- 0.0.1 — 2014-02-12

## README

jetpack-id [![Build Status](https://travis-ci.org/jsantell/jetpack-id.png)](https://travis-ci.org/jsantell/jetpack-id)
======

Takes a [Jetpack](https://wiki.mozilla.org/Jetpack) addon manifest object and returns a properly formatted ID for the addon. Works with [cfx](https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/cfx) and [jpm](http://github.com/mozilla/jpm) and any Jetpack addon that uses a `package.json`.

## Usage

```javascript
var getID = require("jetpack-id");

getID({ name: "my-addon" }); // "@my-addon"
getID({ id: "tab-fixer@addon" }); // "tab-fixer@addon"

// Manifest's generated by cfx generate an ID that is invalid -- this
// should be manually changed to be compatable with AMO by appending
// a `@jetpack` at the end, and this module does NOT do that.
getID({ id: "jid1-JtUwP0fsy08AKw" }); // null
```

## Installing

* `npm install jetpack-id`

## License

MPL 2.0 License, copyright (c) 2014 Jordan Santell

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