{"id":16261430,"url":"https://github.com/dammy001/react-form-validation-hook","last_synced_at":"2026-01-21T10:37:22.754Z","repository":{"id":37073769,"uuid":"412499260","full_name":"dammy001/react-form-validation-hook","owner":"dammy001","description":"react form validation hook","archived":false,"fork":false,"pushed_at":"2026-01-12T20:28:48.000Z","size":1718,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T01:26:27.732Z","etag":null,"topics":["hooks","react","react-hooks","validation-library","validation-rules","validations"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@damilaredev/react-form-validation-hook","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/dammy001.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-10-01T14:28:51.000Z","updated_at":"2026-01-05T17:31:38.000Z","dependencies_parsed_at":"2024-02-29T20:25:00.626Z","dependency_job_id":"f5af6c3e-0865-44b3-889f-7a99212a0b75","html_url":"https://github.com/dammy001/react-form-validation-hook","commit_stats":null,"previous_names":["dammy001/react-form-validation"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dammy001/react-form-validation-hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dammy001%2Freact-form-validation-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dammy001%2Freact-form-validation-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dammy001%2Freact-form-validation-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dammy001%2Freact-form-validation-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dammy001","download_url":"https://codeload.github.com/dammy001/react-form-validation-hook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dammy001%2Freact-form-validation-hook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["hooks","react","react-hooks","validation-library","validation-rules","validations"],"created_at":"2024-10-10T16:41:29.555Z","updated_at":"2026-01-21T10:37:22.737Z","avatar_url":"https://github.com/dammy001.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Form Validation Hook\n\n### Install\n\n#### NPM\n\n```\nnpm i @damilaredev/react-form-validation-hook\n```\n\n#### Yarn\n\n```\nyarn add @damilaredev/react-form-validation-hook\n```\n\n### Usage\n\n```javascript\nimport React, { FC, useState } from 'react';\nimport useFormValidator from '@damilaredev/react-form-validation-hook'\n\nconst Login: FC = () =\u003e {\n const { values, errors, updateField, isAllFieldsValid } = useFormValidator({\n  email: {\n   value: '',\n   checks: 'required|email', //using pipe to seperate validation rule\n  },\n  password: {\n   value: '',\n   checks: 'required|digitsBetween:3,5|in:damilare,maxwell,notIn:christiana',\n  }\n });\n\n const submitCredentials = async (e: FormEvent\u003cHTMLFormElement\u003e) =\u003e {\n  e.preventDefault();\n\n  if (!isAllFieldsValid()) return false;\n\n  const { email, password } = values;\n };\n\n return (\n     \u003cinput className=\"w-full h-5 p-3\" type=\"text\" name=\"email\" placeholder=\"Email Address\" onChange={updateField} /\u003e\n      {errors \u0026\u0026 \u003cspan className=\"text-red-500 text-sm mt-1\"\u003e{errors[key]}\u003c/span\u003e}\n )\n};\n```\n\n## Available validation rules\n\n- required\n- email\n- numeric\n- alphabetic\n- alphaNumeric\n- maxLength\n- minLength\n- phone\n- url\n- size\n- in\n- digitsBetween\n- notIn\n- regex\n- cardNumber\n\nstay patient more validation rules are coming...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdammy001%2Freact-form-validation-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdammy001%2Freact-form-validation-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdammy001%2Freact-form-validation-hook/lists"}