{"id":16760391,"url":"https://github.com/ryanve/focux","last_synced_at":"2025-03-16T09:16:42.740Z","repository":{"id":57239668,"uuid":"117407150","full_name":"ryanve/focux","owner":"ryanve","description":"Match :focus-within for better focus experience","archived":false,"fork":false,"pushed_at":"2018-01-15T04:29:54.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T21:51:21.780Z","etag":null,"topics":["focus","focus-within","javascript","opensource"],"latest_commit_sha":null,"homepage":"https://ryanve.github.io/focux","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-14T06:19:03.000Z","updated_at":"2021-10-11T17:57:02.000Z","dependencies_parsed_at":"2022-08-29T22:22:35.467Z","dependency_job_id":null,"html_url":"https://github.com/ryanve/focux","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Ffocux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Ffocux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Ffocux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Ffocux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanve","download_url":"https://codeload.github.com/ryanve/focux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847056,"owners_count":20357317,"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":["focus","focus-within","javascript","opensource"],"created_at":"2024-10-13T04:23:21.508Z","updated_at":"2025-03-16T09:16:42.707Z","avatar_url":"https://github.com/ryanve.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [`focux`](https://www.npmjs.com/package/focux)\ndetect [`:focus-within`](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-within) for better UX\n\n```\nnpm install focux\n```\n\n```js\nconst focux = require(\"focux\")\n```\n\n## api\n\n### `focux.within(element)`\n\n- test if `element` matches `:focus-within` specification\n- matches even without native `:focus-within` support\n- `element` is a DOM element node\n- `@return boolean`\n\n```js\nfocux.within(element) // true || false\n```\n\n## compatibility\n\n- [ES5+](https://caniuse.com/#feat=es5)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Ffocux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanve%2Ffocux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Ffocux/lists"}