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

Package detail

chrome-web-store-item-property

pandawing122MIT1.2.0

Gather meta information from chrome web store

api, chrome, chrome-app, chrome-extension, chrome-theme, chrome-web-store, itemprop, meta, web-store, webstore

readme

chrome-web-store-item-property

NPM version Travis-CI Status Appveyor Status Daviddm Status

Gather meta information from chrome web store.

For example: version, count of downloads and rating.

See chrome-web-store-item-property-cli for the command-line version.

Install

$ npm install --save chrome-web-store-item-property

Usage

var chromeWebStoreItemProperty = require('chrome-web-store-item-property');
// or
<script src="build/chrome-web-store-item-property.js"></script>

// free app
chromeWebStoreItemProperty('nimelepbpejjlbmoobocpfnjhihnpked')
  .then(function (value) {
    console.log(value);
    // =>
    //{
    //  name: 'Do Not Merge WIP for GitHub',
    //  url: 'https://chrome.google.com/webstore/detail/do-not-merge-wip-for-gith/nimelepbpejjlbmoobocpfnjhihnpked',
    //  image: 'https://ssl.gstatic.com/chrome/webstore/images/thumb.png',
    //  version: '1.0.6',
    //  price: '0',
    //  priceCurrency: 'USD',
    //  interactionCount: {
    //    UserDownloads: 418
    //  },
    //  operatingSystems: 'Chrome',
    //  ratingValue: 4.5,
    //  ratingCount: 2,
    //  id: 'nimelepbpejjlbmoobocpfnjhihnpked'
    //};
  });

// paid app
chromeWebStoreItemProperty('anhdpjpojoipgpmfanmedjghaligalgb')
  .then(function (value) {
    console.log(value);
    // =>
    //{
    //  name: 'JSTorrent',
    //  url: 'https://chrome.google.com/webstore/detail/jstorrent/anhdpjpojoipgpmfanmedjghaligalgb',
    //  image: 'https://lh3.googleusercontent.com/vjPcbLBejt-YqEH42E85IhbEMSFShJp8MEWc6NkIIVGOWf0JkCUyB5i1BWrWwu0dxfCPUTxz=s128-h128-e365',
    //  version: '2.4.3',
    //  interactionCount: { UserDownloads: 51312 },
    //  operatingSystem: 'Chrome',
    //  ratingValue: 4.423273657289003,
    //  ratingCount: 3128,
    //  id: 'anhdpjpojoipgpmfanmedjghaligalgb'
    //}
  });

API

chromeWebStoreItemProperty(identifier[, config]) -> Promise

identifier

Required
Type: string

ID for Chrome Web Store.

config

Pass request's available options

var defaultConfig = {
  headers: {
    'User-Agent': 'https://github.com/pandawing/node-chrome-web-store-item-property'
  },
  qs: {
    hl: 'en',
    gl: 'US'
  }
};

chromeWebStoreItemProperty.get(identifier[, config]) -> Promise

identifier

Required
Type: string

ID for Chrome Web Store.

config

Pass request's available options

var defaultConfig = {
  headers: {
    'User-Agent': 'https://github.com/pandawing/node-chrome-web-store-item-property'
  },
  qs: {
    hl: 'en',
    gl: 'US'
  }
};

chromeWebStoreItemProperty.convert(detailHtml) -> Promise

Errors

chromeWebStoreItemProperty.HTTPError

chromeWebStoreItemProperty.InvalidFormatError

Changelog

changelog.md.

License

MIT © sanemat

changelog

1.2.0 (2019-11-08)

Features

  • app: requires node v8 (2612e0d)
  • Use htmlparser2 directly

1.1.3 (2019-11-03)

  • Update dependencies

1.1.2 (2016-04-03)

  • Update dependencies

1.1.1 (2015-08-22)

  • Update dependencies

1.1.0 (2015-08-08)

Features

  • convert: ratingCount, ratingValue, UserDownloads to float (3d9aa67), closes #14
  • parse-float-with-comma: implement (df234f3)

1.0.1 (2015-08-08)

  • Refactor method

1.0.0 (2015-08-07)

  • Add example

Features

  • build: build package for browser (796c5af), closes #11

0.2.0 (2015-08-07)

Bug Fixes

  • get: use request instead of axios, because of follow redirection (ce64442), closes #9

0.1.0 (2015-08-06)

  • Ship chrome-web-store-item-property

Features

  • convert: parse and convert meta data (b8393a2)
  • get: add default config (5c3360e)
  • run: add run (86ee053)