{"id":15008702,"url":"https://github.com/marchdev-tk/cross_platform","last_synced_at":"2025-05-09T00:38:22.763Z","repository":{"id":56827452,"uuid":"305598307","full_name":"marchdev-tk/cross_platform","owner":"marchdev-tk","description":"Cross platform package that unifies the work with Platform and wrapps dart:io Platform and dart:html to determine platform of the host machine an info about it.","archived":false,"fork":false,"pushed_at":"2021-04-28T07:59:31.000Z","size":95,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-19T12:24:59.591Z","etag":null,"topics":["android","dart","dart2","dartlang","flutter","flutter-package","flutter-plugin","ios","linux","macos","web","windows"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marchdev-tk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-20T05:21:42.000Z","updated_at":"2023-12-09T03:49:55.000Z","dependencies_parsed_at":"2022-08-28T21:11:01.296Z","dependency_job_id":null,"html_url":"https://github.com/marchdev-tk/cross_platform","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"marchdev-tk/flutter_package_template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fcross_platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fcross_platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fcross_platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fcross_platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marchdev-tk","download_url":"https://codeload.github.com/marchdev-tk/cross_platform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225114757,"owners_count":17423062,"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":["android","dart","dart2","dartlang","flutter","flutter-package","flutter-plugin","ios","linux","macos","web","windows"],"created_at":"2024-09-24T19:20:04.446Z","updated_at":"2024-11-18T01:41:40.829Z","avatar_url":"https://github.com/marchdev-tk.png","language":"Dart","readme":"# cross_platform\n\n![Build](https://github.com/marchdev-tk/cross_platform/workflows/build/badge.svg)\n[![Pub](https://img.shields.io/pub/v/cross_platform.svg)](https://pub.dev/packages/cross_platform)\n![GitHub](https://img.shields.io/github/license/marchdev-tk/cross_platform)\n![GitHub stars](https://img.shields.io/github/stars/marchdev-tk/cross_platform?style=social)\n\nCross platform package that unifies the work with Platform and wrapps dart:io Platform and dart:html to determine platform of the host machine an info about it.\n\n## Getting Started\n\n * `Platform.isWeb` - gets whether host platform is web based or not.\n\n * `Platform.isAndroid` - gets whether this app is running on Android or not.\n\n * `Platform.isIOS` - gets whether this app is running on iOS or not.\n\n * `Platform.isMobile` - gets whether this app is running on iOS/Android or not.\n\n * `Platform.isMacOS` - gets whether this app is running on MacOS or not.\n\n * `Platform.isLinux` - gets whether this app is running on Linux or not.\n\n * `Platform.isWindows` - gets whether this app is running on Windows or not.\n\n * `Platform.isDesktop` - gets whether this app is running on MacOS/Linux/Windows or not.\n\n * `Platform.isFuchsia` - gets whether this app is running on Fuchsia or not.\n\n * `Platform.numberOfProcessors` - gets the number of individual execution units of the machine.\n\n * `Platform.pathSeparator` - gets the path separator used by the operating system to separate components in file paths.\n\n * `Platform.localeName` - gets the name of the current locale.\n\n * `Platform.operatingSystem` - gets a string representing the operating system or platform.\n\n * `Platform.operatingSystemVersion` - gets a string representing the version of the operating system or platform.\n\n### Only IO implementation:\n\n * `Platform.localHostname` - gets the local hostname for the system.\n\n * `Platform.environment` - gets the environment for this process as a map from string key to string value.\n\n * `Platform.executable` - gets the path of the executable used to run the script in this isolate.\n\n * `Platform.resolvedExecutable` - gets the path of the executable used to run the script in this isolate after it has been resolved by the OS.\n\n * `Platform.script` - gets the absolute URI of the script being run in this isolate.\n\n * `Platform.executableArguments` - gets the flags passed to the executable used to run the script in this isolate.\n\n * `Platform.packageConfig` - gets the `--packages` flag passed to the executable used to run the script in this isolate.\n\n * `Platform.version` - gets the version of the current Dart runtime.\n\n## Feature requests and Bug reports\n\nFeel free to post a feature requests or report a bug [here](https://github.com/marchdev-tk/cross_platform/issues).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchdev-tk%2Fcross_platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarchdev-tk%2Fcross_platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchdev-tk%2Fcross_platform/lists"}