{"id":24514939,"url":"https://github.com/alexweblab/window-width-react-hook","last_synced_at":"2025-03-15T10:27:08.591Z","repository":{"id":140028067,"uuid":"366632266","full_name":"AlexWebLab/window-width-react-hook","owner":"AlexWebLab","description":"This React hook returns the current window width.","archived":false,"fork":false,"pushed_at":"2021-05-13T06:33:22.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T02:33:03.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexWebLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-05-12T07:37:55.000Z","updated_at":"2021-05-13T06:33:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce4d9030-ff27-44b8-ace0-7b7a32ff2dfd","html_url":"https://github.com/AlexWebLab/window-width-react-hook","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"c100e9a811cd6138fc1ee5ed6df3882b66fe45ce"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWebLab%2Fwindow-width-react-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWebLab%2Fwindow-width-react-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWebLab%2Fwindow-width-react-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWebLab%2Fwindow-width-react-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexWebLab","download_url":"https://codeload.github.com/AlexWebLab/window-width-react-hook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243716243,"owners_count":20336111,"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":"2025-01-22T01:15:15.770Z","updated_at":"2025-03-15T10:27:08.569Z","avatar_url":"https://github.com/AlexWebLab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nThis React hook returns the current window width.\n\n## Install\n\n```bash\nnpm i window-width-react-hook\n```\n\nOr\n\n```bash\nyarn add window-width-react-hook\n```\n\n## Usage\n\n1. Include the hook:\n\n   ```javascript\n   import useWindowWidth from 'window-width-react-hook';\n   ```\n\n2. Use it where is needed:\n\n   ```jsx\n   function App() {\n    return (\n      \u003cdiv\u003e\n        Current width: {useWindowWidth()}px\n      \u003c/div\u003e\n    );\n   }\n   ```\n\n### License\n\nLicensed under the MIT License, Copyright © 2021 AlexWebLab\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexweblab%2Fwindow-width-react-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexweblab%2Fwindow-width-react-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexweblab%2Fwindow-width-react-hook/lists"}