{"id":13461968,"url":"https://github.com/malcodeman/malhooks","last_synced_at":"2025-07-26T15:31:21.005Z","repository":{"id":36163448,"uuid":"221954230","full_name":"malcodeman/malhooks","owner":"malcodeman","description":"Collection of React Hooks.","archived":false,"fork":false,"pushed_at":"2023-03-04T19:45:13.000Z","size":1394,"stargazers_count":6,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T06:46:22.490Z","etag":null,"topics":["hooks","react"],"latest_commit_sha":null,"homepage":"https://malhooks.surge.sh","language":"JavaScript","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/malcodeman.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-11-15T15:44:51.000Z","updated_at":"2024-02-23T16:12:22.000Z","dependencies_parsed_at":"2024-05-02T15:59:51.709Z","dependency_job_id":"02e51e87-ee28-48a4-9542-c184b20dc604","html_url":"https://github.com/malcodeman/malhooks","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"1a598d744686b5a1634017ed8e5624050a9c6b9b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malcodeman/malhooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcodeman%2Fmalhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcodeman%2Fmalhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcodeman%2Fmalhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcodeman%2Fmalhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malcodeman","download_url":"https://codeload.github.com/malcodeman/malhooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcodeman%2Fmalhooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264946032,"owners_count":23687088,"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"],"created_at":"2024-07-31T12:00:36.625Z","updated_at":"2025-07-26T15:31:20.729Z","avatar_url":"https://github.com/malcodeman.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"# [malhooks](http://malhooks.surge.sh)\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![npm](https://img.shields.io/npm/v/malhooks)](https://www.npmjs.com/package/malhooks)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/malcodeman/malhooks/blob/master/LICENSE)\n[![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)\n\nCollection of [React Hooks](https://reactjs.org/docs/hooks-intro.html).\n\n## Getting started\n\n```\nyarn add malhooks\n```\n\n## Hooks\n\n- [`useFavicon`](./docs/useFavicon.md) \u0026mdash; sets favicon of the page.\n- [`useInterval`](./docs/useInterval.md) \u0026mdash; declarative setInterval.\n- [`useKeyPress`](./docs/useKeyPress.md) \u0026mdash; tracks keys.\n- [`useLocalStorage`](./docs/useLocalStorage.md) \u0026mdash; manages a value in localStorage.\n- [`useLockBodyScroll`](./docs/useLockBodyScroll.md) \u0026mdash; locks scrolling of the body element.\n- [`useOnClickOutside`](./docs/useOnClickOutside.md) \u0026mdash; triggers callback when user clicks outside target area.\n- [`usePreferredTheme`](./docs/usePreferredTheme.md) \u0026mdash; returns preferred theme.\n- [`usePrevious`](./docs/usePrevious.md) \u0026mdash; returns the previous state or props.\n- [`useTitle`](./docs/useTitle.md) \u0026mdash; sets title of the page.\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcodeman%2Fmalhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalcodeman%2Fmalhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcodeman%2Fmalhooks/lists"}