JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 60835
  • Score
    100M100P100Q10133F
  • License MIT

Creates an ID from a Firefox Jetpack manifest

Package Exports

  • jetpack-id

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jetpack-id) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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({ id: "jid1-JtUwP0fsy08AKw" }); // "jid1-JtUwP0fsy08AKw@jetpack"
getID({ name: "my-addon" }); // "@my-addon"
getID({ id: "tab-fixer@addon" }); // "tab-fixer@addon"

Installing

  • npm install jetpack-id

License

MIT License, copyright (c) 2014 Jordan Santell