3.0.1 • Published 8 years ago
w3counter v3.0.1
w3counter
An API for w3counter to get the most popular operating systems, screen resolutions and web browsers
Install
$ npm install --save w3counter
Usage
const w3counter = require('w3counter');
w3counter('browser').then(data => {
console.log(data);
//=> [{item: 'Chrome 34', percent: '20.71%'}, {item: 'Firefox 28', percent: '13.04%'}, ...]
});
w3counter('res').then(data => {
console.log(data);
//=> [{item: '1366x768', percent: '20.34%'}, {item: '1280x800', percent: '9.23%'}, ...]
});
API
w3counter(type)
Returns a promise for an array with the ten most popular items from the type you provided from w3counter.com.
type
Type: string
What type of items to get. Available types are:
browser
— Ten most popular web browsersos
— Ten most popular operating systemsres
— Ten most popular screen resolutions
CLI
$ npm install --global w3counter
$ w3counter --help
Usage
$ w3counter <type>
Examples
$ w3counter browser
$ w3counter os
$ w3counter res
License
MIT © Kevin Mårtensson
3.0.1
8 years ago
3.0.0
8 years ago
2.0.1
8 years ago
2.0.0
9 years ago
1.2.0
9 years ago
1.1.0
9 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.2.3
10 years ago
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago