jetpack-id

Creates an ID from a Firefox Jetpack manifest

Jetpack extensions are no longer supported by Firefox. Use web-ext instead to build a WebExtension.
Last updated 10 years ago by jsantell .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install jetpack-id 
SYNC missed versions from official npm registry.

jetpack-id Build Status

Takes a Jetpack addon manifest object and returns a properly formatted ID for the addon. Works with cfx and jpm and any Jetpack addon that uses a package.json.

Usage

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

Current Tags

  • 1.0.0                                ...           latest (10 years ago)

5 Versions

  • 1.0.0 [deprecated]           ...           10 years ago
  • 0.0.4 [deprecated]           ...           10 years ago
  • 0.0.3 [deprecated]           ...           10 years ago
  • 0.0.2 [deprecated]           ...           11 years ago
  • 0.0.1 [deprecated]           ...           11 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE