Giter Site home page Giter Site logo

w3counter's Introduction

w3counter Build Status

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 browsers
  • os — Ten most popular operating systems
  • res — 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

w3counter's People

Contributors

kevva avatar samverschueren avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

w3counter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.