Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

w3counter

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

w3counter

Get ten most popular screen resolutions, browsers, operating system and countries

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
445
decreased by-30.47%
Maintainers
1
Weekly downloads
 
Created
Source

w3counter Build Status

An API for w3counter to get the most popular countries, 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 that resolves to an array with the ten most popular items from the type you provided from w3counter.com.

type

Required
Type: string

What type of items to get. Available types are:

  • browser — Ten most popular web browsers
  • country — Ten most popular countries
  • os — Ten most popular operating systems
  • res — Ten most popular screen resolutions

CLI

$ npm install --global w3counter
$ w3counter --help

  Usage
    $ w3counter <type>

  Example
    $ w3counter browser
    $ w3counter country
    $ w3counter os
    $ w3counter res

License

MIT © Kevin Mårtensson

Keywords

FAQs

Package last updated on 11 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc