{"id":24080140,"url":"https://github.com/pindlebot/react-valid-attributes","last_synced_at":"2025-10-23T19:56:11.542Z","repository":{"id":57347311,"uuid":"127385031","full_name":"pindlebot/react-valid-attributes","owner":"pindlebot","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-29T01:34:17.000Z","size":2,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-26T13:03:22.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pindlebot.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}},"created_at":"2018-03-30T05:23:31.000Z","updated_at":"2018-12-29T01:34:19.000Z","dependencies_parsed_at":"2022-08-28T04:00:57.691Z","dependency_job_id":null,"html_url":"https://github.com/pindlebot/react-valid-attributes","commit_stats":null,"previous_names":["unshift/react-valid-attributes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pindlebot/react-valid-attributes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pindlebot%2Freact-valid-attributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pindlebot%2Freact-valid-attributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pindlebot%2Freact-valid-attributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pindlebot%2Freact-valid-attributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pindlebot","download_url":"https://codeload.github.com/pindlebot/react-valid-attributes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pindlebot%2Freact-valid-attributes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280683918,"owners_count":26372970,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T22:56:08.361Z","updated_at":"2025-10-23T19:56:11.508Z","avatar_url":"https://github.com/pindlebot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## react-valid-attributes\n\nExports two functions:\n\n- pick: pick all valid html attributes from props for a given element\n- omit: omit all valid html attributes from props for a given element\n\nUses [react-html-attributes](https://www.npmjs.com/package/react-html-attributes).\n\n## Example\n```js\nconst { pick, omit }  = require('react-valid-attributes')\n\nconst props = {\n  src: 'https://pbs.twimg.com/profile_images/765333670366355456/q5ACQ8i3_400x400.jpg',\n  alt: 'The npm logo',\n  handleImageClick: () =\u003e {}\n}\n\nconst attributes = pick(props, 'img')\n// =\u003e { src: '...', alt: '...' }\n\nconst rest = omit(props, 'img')\n// =\u003e { handleImageClick }","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpindlebot%2Freact-valid-attributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpindlebot%2Freact-valid-attributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpindlebot%2Freact-valid-attributes/lists"}