Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webextension-store-meta

Get browser extension(webextension) item meta from Chrome Web Store and Firefox add-ons.

chrome, firefox, amo, extension, webextension, addon, add-on, web-store, webstore, chrome-app, chrome-extension, chrome-theme, chrome-web-store, firefox-addons, itemprop, meta

readme

webextension-store-meta logo

webextension-store-meta

Docs npm-version Build Status Coverage Status

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

changelog

[1.2.4] - 2024-10-13

Added

  • Add size and lastUpdated #8.

[1.2.3] - 2024-05-17

Updated

  • Add a backup method to parse Chrome version from manifest.

[1.2.2] - 2024-05-17

Fixed

  • Update chrome version parsing

[1.2.1] - 2024-04-18

Updated

  • Loosen engines.node constraint #5

[1.2.0] - 2024-04-10

Updated

  • Breaking: Implement with TypeScript. module.exports is no longer available. Use named import instead.

Fixed

  • Fix #2 UTF-8 location header causing infinite redirect loop.

[1.1.0] - 2023-02-16

Updated

  • Update to the new Chrome Web Store. Removed operatingSystem, price and priceCurrency.

[1.0.5] - 2021-11-08

Updated

  • Replace Travis-CI with Github Actions.

[1.0.4] - 2021-06-12

Fixed

  • Fix #1 by adding domutils to dependencies. This is due to this PR in which I used undocumented way to import domutils API for performance reason. Domutils v2 does not seem to have this issue anymore as the code is more modular and cleaner.