{"id":16350910,"url":"https://github.com/kevva/w3counter","last_synced_at":"2025-10-26T02:30:51.662Z","repository":{"id":15443050,"uuid":"18175852","full_name":"kevva/w3counter","owner":"kevva","description":"An API for w3counter.com","archived":false,"fork":false,"pushed_at":"2017-05-31T19:21:00.000Z","size":36,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-17T04:03:05.444Z","etag":null,"topics":["browser","nodejs","os","screen-resolution","w3counter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevva.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-27T12:59:44.000Z","updated_at":"2024-04-05T19:06:20.000Z","dependencies_parsed_at":"2022-08-26T05:21:05.163Z","dependency_job_id":null,"html_url":"https://github.com/kevva/w3counter","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fw3counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fw3counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fw3counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fw3counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevva","download_url":"https://codeload.github.com/kevva/w3counter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238247926,"owners_count":19440879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","nodejs","os","screen-resolution","w3counter"],"created_at":"2024-10-11T01:06:43.768Z","updated_at":"2025-10-26T02:30:51.344Z","avatar_url":"https://github.com/kevva.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# w3counter [![Build Status](http://img.shields.io/travis/kevva/w3counter.svg?style=flat)](https://travis-ci.org/kevva/w3counter)\n\n\u003e An API for w3counter to get the most popular operating systems, screen resolutions and web browsers\n\n\n## Install\n\n```\n$ npm install --save w3counter\n```\n\n\n## Usage\n\n```js\nconst w3counter = require('w3counter');\n\nw3counter('browser').then(data =\u003e {\n\tconsole.log(data);\n\t//=\u003e [{item: 'Chrome 34', percent: '20.71%'}, {item: 'Firefox 28', percent: '13.04%'}, ...]\n});\n\nw3counter('res').then(data =\u003e {\n\tconsole.log(data);\n\t//=\u003e [{item: '1366x768', percent: '20.34%'}, {item: '1280x800', percent: '9.23%'}, ...]\n});\n```\n\n\n## API\n\n### w3counter(type)\n\nReturns a promise for an array with the ten most popular items from the type you provided from\n[w3counter.com](http://www.w3counter.com/globalstats.php).\n\n#### type\n\nType: `string`\n\nWhat type of items to get. Available types are:\n\n* `browser` — Ten most popular web browsers\n* `os` — Ten most popular operating systems\n* `res` — Ten most popular screen resolutions\n\n\n## CLI\n\n```\n$ npm install --global w3counter\n```\n\n```\n$ w3counter --help\n\n  Usage\n    $ w3counter \u003ctype\u003e\n\n  Examples\n    $ w3counter browser\n    $ w3counter os\n    $ w3counter res\n```\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fw3counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevva%2Fw3counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fw3counter/lists"}