Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevva/get-res
Get ten most popular screen resolutions
https://github.com/kevva/get-res
Last synced: 17 days ago
JSON representation
Get ten most popular screen resolutions
- Host: GitHub
- URL: https://github.com/kevva/get-res
- Owner: kevva
- License: mit
- Created: 2014-02-14T16:01:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-24T08:36:02.000Z (about 8 years ago)
- Last Synced: 2024-10-12T01:06:40.171Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 16
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# get-res [![Build Status](http://img.shields.io/travis/kevva/get-res.svg?style=flat)](https://travis-ci.org/kevva/get-res)
> Get ten most popular screen resolutions
## Install
```
$ npm install --save get-res
```## Usage
```js
const getRes = require('get-res');getRes().then(data => {
console.log(data);
// => [{item: '1366x768', percent: '20.34%'}, {item: '1280x800', percent: '9.23%'}, ...]
});
```## API
### getRes()
Gets ten most popular screen resolutions from [w3counter](http://www.w3counter.com/globalstats.php). Returns a promise that resolves to an array containing the results.
## CLI
```
$ npm install --global get-res
``````
$ get-res --helpUsage
$ get-res
```## License
MIT © [Kevin Mårtensson](https://github.com/kevva)