{"id":18521552,"url":"https://github.com/transferwise/ng-browser-info","last_synced_at":"2025-10-22T14:26:19.238Z","repository":{"id":23697164,"uuid":"27069227","full_name":"transferwise/ng-browser-info","owner":"transferwise","description":"AngularJS service that gives you a collection of methods for knowing more about your client browser","archived":true,"fork":false,"pushed_at":"2023-04-07T01:08:31.000Z","size":105,"stargazers_count":37,"open_issues_count":1,"forks_count":7,"subscribers_count":159,"default_branch":"master","last_synced_at":"2025-03-21T09:08:02.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://transferwise.github.io/ng-browser-info/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/transferwise.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-24T09:31:19.000Z","updated_at":"2024-12-06T14:32:57.000Z","dependencies_parsed_at":"2024-11-06T17:33:10.071Z","dependency_job_id":null,"html_url":"https://github.com/transferwise/ng-browser-info","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Fng-browser-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Fng-browser-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Fng-browser-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Fng-browser-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transferwise","download_url":"https://codeload.github.com/transferwise/ng-browser-info/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694892,"owners_count":20980731,"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":[],"created_at":"2024-11-06T17:26:29.746Z","updated_at":"2025-10-22T14:26:13.881Z","avatar_url":"https://github.com/transferwise.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ngBrowserInfo\n===============\n\n[![Build Status](https://travis-ci.org/transferwise/ng-browser-info.svg?branch=master)](https://travis-ci.org/transferwise/ng-browser-info)\n\n# Master branch is outdated\n\nA long time ago, this repo's CI pipeline was set up with Travis and Bower. We've since switched to Circle and publishing to NPM (@transferwise/ng-browser-info), but we can't upgrade master until some TW dependents stop relying on latest master of this repo on GitHub in their `package.json`s.\n\nFor now, the true head is the `next` branch. Once dependents have updated to pull from NPM instead of GitHub, we can subsume `next` back into `master`.\n\n## Intro\n\nngBrowserInfo is an AngularJS service that gives you a collection of methods for knowing more about your client browser:\n\n* Browser name and version\n* OS name and version\n* Are cookies enabled\n* Is user using a mobile device\n* Language\n* Screen size\n* Window size\n\n## Installation\n\n````\nnpm install ng-browser-info\n````\nor\n````\nbower install ng-browser-info\n````\n\n## Usage\n\n````javascript\n// Add ngBrowserInfo as a dependency to your app\nangular.module('your-app', ['ngBrowserInfo']);\n\n// Inject browserInfo service into your controller\nangular.module('your-app').controller('MainCtrl', function($scope, browserInfo) {\n  // ...\n});\n````\n\n#### Methods\n\n````javascript\n\n// Returns object with width and height properties\nbrowserInfo.getScreenSize();\nbrowserInfo.getWindowSize();\n\n// Returns Boolean\nbrowserInfo.isMobile();\nbrowserInfo.areCookiesEnabled();\n\n// Returns String\nbrowserInfo.getLanguage();\n\n// Returns object with name and version properties\nbrowserInfo.getOSInfo();\nbrowserInfo.getBrowserInfo();\n\n// giveMeAllYouGot() collects all the method results into one object\nbrowserInfo.giveMeAllYouGot();\n````\n\n## Demo\n\nCheck it out [here](http://transferwise.github.io/ng-browser-info/)\n\n## License\n\n[Apache 2.0 License](//github.com/transferwise/ng-browser-info/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransferwise%2Fng-browser-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransferwise%2Fng-browser-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransferwise%2Fng-browser-info/lists"}