{"id":15066427,"url":"https://github.com/wrike/user-environment.dart","last_synced_at":"2025-10-05T03:30:52.553Z","repository":{"id":56841627,"uuid":"112699446","full_name":"wrike/user-environment.dart","owner":"wrike","description":"User environment detection written in Dart","archived":true,"fork":false,"pushed_at":"2017-12-05T06:54:01.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-30T11:04:43.158Z","etag":null,"topics":["browser-detection","dart","dart-web","dartlang"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wrike.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-12-01T05:37:13.000Z","updated_at":"2023-01-28T09:49:36.000Z","dependencies_parsed_at":"2022-08-29T06:50:55.637Z","dependency_job_id":null,"html_url":"https://github.com/wrike/user-environment.dart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrike%2Fuser-environment.dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrike%2Fuser-environment.dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrike%2Fuser-environment.dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrike%2Fuser-environment.dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wrike","download_url":"https://codeload.github.com/wrike/user-environment.dart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235356202,"owners_count":18976819,"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-detection","dart","dart-web","dartlang"],"created_at":"2024-09-25T01:07:58.561Z","updated_at":"2025-10-05T03:30:47.250Z","avatar_url":"https://github.com/wrike.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![travis build](https://travis-ci.org/wrike/user-environment.dart.svg?branch=master)](https://travis-ci.org/wrike/user-environment.dart)\n## User Environment\nThis package allows to detect the platform and the browser version used to view a web page.\n\nDifferentiated browsers are: `IE`, `Edge`, `Chrome`, `Safari`, `Firefox`, `Opera`, `Electron`, `Other` along with `Mac`, `Windows` and `Other` platforms. \n\n### Usage\n```dart\n  import 'package:user_environment/user_environment.dart';\n  void main() {\n    UserEnvironment env = UserEnvironmentFactory();\n    print([\n      env.browser.type,\n      env.browser.version?.value,\n      env.browser.getFeatureVersion('AppleWebKit'),\n      env.platform.type\n    ]);\n  }\n```\n\n### Running tests\n\n  pub serve test\n  pub run test -p chrome\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrike%2Fuser-environment.dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwrike%2Fuser-environment.dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrike%2Fuser-environment.dart/lists"}