{"id":15698678,"url":"https://github.com/alioguzhan/use-screen","last_synced_at":"2025-05-06T21:08:16.206Z","repository":{"id":35687709,"uuid":"218285182","full_name":"alioguzhan/use-screen","owner":"alioguzhan","description":"Custom React hook for screen and device information","archived":false,"fork":false,"pushed_at":"2024-12-30T23:11:45.000Z","size":880,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T21:08:10.548Z","etag":null,"topics":["hooks","react","responsive","screen"],"latest_commit_sha":null,"homepage":"https://alioguzhan.github.io/use-screen/","language":"TypeScript","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/alioguzhan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-29T12:46:17.000Z","updated_at":"2024-12-30T23:11:37.000Z","dependencies_parsed_at":"2023-01-16T03:15:37.614Z","dependency_job_id":"f6900bd0-ceda-4868-bd00-26c288a9c973","html_url":"https://github.com/alioguzhan/use-screen","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alioguzhan%2Fuse-screen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alioguzhan%2Fuse-screen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alioguzhan%2Fuse-screen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alioguzhan%2Fuse-screen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alioguzhan","download_url":"https://codeload.github.com/alioguzhan/use-screen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769421,"owners_count":21801378,"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":["hooks","react","responsive","screen"],"created_at":"2024-10-03T19:32:01.876Z","updated_at":"2025-05-06T21:08:16.184Z","avatar_url":"https://github.com/alioguzhan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-screen\n\n[![FreePalestine.Dev](https://freepalestine.dev/header/1)](https://freepalestine.dev)\n\n\u003e Custom React hook for screen and device information\n\n[![NPM](https://img.shields.io/npm/v/use-screen.svg)](https://www.npmjs.com/package/use-screen)\n[![npm](https://img.shields.io/npm/dm/use-screen.svg)](https://www.npmjs.com/package/use-screen)\n[![codecov](https://codecov.io/gh/alioguzhan/use-screen/branch/master/graph/badge.svg?token=htwLgAlLBc)](https://codecov.io/gh/alioguzhan/use-screen)\n[![Github](https://github.com/alioguzhan/use-screen/workflows/build/badge.svg)](https://github.com/alioguzhan/use-screen/actions)\n[![FreePalestine.Dev](https://freepalestine.dev/badge?t=d\u0026u=0\u0026r=1)](https://freepalestine.dev)\n\n## Install\n\n```bash\nnpm install use-screen\n```\n\nOr with yarn:\n\n```bash\nyarn add use-screen\n```\n\n## Usage\n\n```js\nimport useScreen from 'use-screen';\n\nconst { isMobile, isWideScreen, screenWidth } = useScreen();\n\n// use screen width and other variables as you like\n```\n\nSee the website to see how it works: [https://alioguzhan.github.io/use-screen/](https://alioguzhan.github.io/use-screen/)\n\nThere is also a working live example as a sandbox:\n\n[![Edit use-screen-hook](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/use-screen-hook-80toq?fontsize=14\u0026hidenavigation=1\u0026theme=dark)\n\n## Return Value\n\n```ts\ninterface State {\n  isMobile: boolean; // \u003c 768px\n  isTablet: boolean; // \u003c 1280px\n  isComputer: boolean; // \u003e 1280px\n  isLargeScreen: boolean; // \u003c 1920px\n  isWideScreen: boolean; // \u003e 1920px\n  screenWidth: number; // current screen width (innerWidth)\n  screenHeight: number; // current screen height (innerHeight)\n}\n```\n\n## License\n\nMIT © [alioguzhan](https://github.com/alioguzhan)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falioguzhan%2Fuse-screen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falioguzhan%2Fuse-screen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falioguzhan%2Fuse-screen/lists"}