{"id":21364289,"url":"https://github.com/luke-rogerson/react-native-device-uptime","last_synced_at":"2025-07-13T03:32:16.246Z","repository":{"id":57336525,"uuid":"309172746","full_name":"Luke-Rogerson/react-native-device-uptime","owner":"Luke-Rogerson","description":"Get your iOS or Android device's uptime","archived":false,"fork":false,"pushed_at":"2020-11-02T10:15:28.000Z","size":390,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-23T00:18:01.407Z","etag":null,"topics":["android","ios","react-native","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-device-uptime","language":"Java","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/Luke-Rogerson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-01T19:34:33.000Z","updated_at":"2021-11-23T06:39:29.000Z","dependencies_parsed_at":"2022-09-03T07:20:29.695Z","dependency_job_id":null,"html_url":"https://github.com/Luke-Rogerson/react-native-device-uptime","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luke-Rogerson%2Freact-native-device-uptime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luke-Rogerson%2Freact-native-device-uptime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luke-Rogerson%2Freact-native-device-uptime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luke-Rogerson%2Freact-native-device-uptime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luke-Rogerson","download_url":"https://codeload.github.com/Luke-Rogerson/react-native-device-uptime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225853101,"owners_count":17534653,"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","ios","react-native","typescript"],"created_at":"2024-11-22T06:26:22.756Z","updated_at":"2024-11-22T06:26:23.385Z","avatar_url":"https://github.com/Luke-Rogerson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-device-uptime\n\nA simple library to tell you your iOS or Android device's uptime (ie. the amount of time the system has been awake since the last time it was restarted).\n\nOn iOS, it wraps the [systemUptime](https://developer.apple.com/documentation/foundation/nsprocessinfo/1414553-systemuptime) property.\n\nOn Android, it uses the [elapsedRealtime](https://developer.android.com/reference/android/os/SystemClock#elapsedRealtime()) method.\n\n## Installation\n\n```sh\nnpm install react-native-device-uptime\n```\n\n## Usage\n\n```js\nimport DeviceUptime from \"react-native-device-uptime\";\n\n// ...\n\nconst uptime = await DeviceUptime.getUptime();\n```\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluke-rogerson%2Freact-native-device-uptime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluke-rogerson%2Freact-native-device-uptime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluke-rogerson%2Freact-native-device-uptime/lists"}