Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pandawing/node-chrome-web-store-item-property
Gather meta information from chrome web store.
https://github.com/pandawing/node-chrome-web-store-item-property
Last synced: 24 days ago
JSON representation
Gather meta information from chrome web store.
- Host: GitHub
- URL: https://github.com/pandawing/node-chrome-web-store-item-property
- Owner: pandawing
- License: mit
- Created: 2015-08-05T18:21:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-13T15:49:03.000Z (over 3 years ago)
- Last Synced: 2024-11-11T20:15:33.693Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 1.15 MB
- Stars: 15
- Watchers: 2
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license
Awesome Lists containing this project
- awesome-browser-extensions-and-apps - chrome-web-store-item-property - gather version, count of downloads and rating from chrome Web Store. (Tools / Publishing)
README
# chrome-web-store-item-property
[![NPM version][npm-image]][npm-url] [![Travis-CI Status][travis-image]][travis-url] [![Appveyor Status][appveyor-image]][appveyor-url] [![Daviddm Status][daviddm-image]][daviddm-url]
> Gather meta information from chrome web store.
For example: version, count of downloads and rating.
See [chrome-web-store-item-property-cli](https://github.com/pandawing/node-chrome-web-store-item-property-cli) for the command-line version.
## Install
```
$ npm install --save chrome-web-store-item-property
```## Usage
```js
var chromeWebStoreItemProperty = require('chrome-web-store-item-property');
// or// 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](https://github.com/request/request#requestoptions-callback)
```js
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](https://github.com/request/request#requestoptions-callback)
```js
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](./changelog.md).
## License
MIT © [sanemat](http://sane.jp)
[travis-url]: https://travis-ci.org/pandawing/node-chrome-web-store-item-property
[travis-image]: https://img.shields.io/travis/pandawing/node-chrome-web-store-item-property/master.svg?style=flat-square&label=travis
[appveyor-url]: https://ci.appveyor.com/project/sanemat/node-chrome-web-store-item-property/branch/master
[appveyor-image]: https://img.shields.io/appveyor/ci/sanemat/node-chrome-web-store-item-property/master.svg?style=flat-square&label=appveyor
[npm-url]: https://npmjs.org/package/chrome-web-store-item-property
[npm-image]: https://img.shields.io/npm/v/chrome-web-store-item-property.svg?style=flat-square
[daviddm-url]: https://david-dm.org/pandawing/node-chrome-web-store-item-property
[daviddm-image]: https://img.shields.io/david/pandawing/node-chrome-web-store-item-property.svg?style=flat-square