Package Exports
- webextension-store-meta
- webextension-store-meta/lib/index.js
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 (webextension-store-meta) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Get browser extension(webextension) item meta from Chrome Web Store and Firefox add-ons.
This lib uses many fallback methods to improve stability and performance.
Who Use It
|
|
Shields.io | Badgen |
---|---|
Quality metadata badges for open source projects |
Fast badge generating service |
Installation
npm
npm add webextension-store-meta
Usage
const { ChromeWebStore } = require('webextension-store-meta/lib/chrome-web-store')
const chromeWebStore = await ChromeWebStore.load({
id: 'xxxxxxx',
qs: { hl: 'en' },
})
console.log(chromeWebStore.meta())
const { Amo } = require('webextension-store-meta/lib/amo')
const amo = await Amo.load({ id: 'xxxxxxx' })
console.log(amo.meta())
Get individual property:
const { Amo } = require('webextension-store-meta/lib/amo')
const amo = await Amo.load({ id: 'xxxxxxx' })
console.log(amo.name())
console.log(amo.ratingValue())
Load config:
- id
{string}
required - extension id. - qs
{string|object}
optional - querystring. - options
object
optional - undici.fetch options.
Development
git clone https://github.com/awesome-webextension/webextension-store-meta.git
cd webextension-store-meta
pnpm i
pnpm test