{"id":26811423,"url":"https://github.com/eyedea-io/syncano-validate","last_synced_at":"2025-10-20T08:28:15.013Z","repository":{"id":74004627,"uuid":"75945010","full_name":"eyedea-io/syncano-validate","owner":"eyedea-io","description":"Client/Server side validation library based on Laravel.","archived":false,"fork":false,"pushed_at":"2017-10-03T12:18:19.000Z","size":142,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":12,"default_branch":"devel","last_synced_at":"2025-10-08T15:00:12.789Z","etag":null,"topics":["syncano","validation"],"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/eyedea-io.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-12-08T14:30:26.000Z","updated_at":"2017-08-11T14:28:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b0f1e0f-8149-47a7-8130-b5db3836f8ef","html_url":"https://github.com/eyedea-io/syncano-validate","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/eyedea-io/syncano-validate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyedea-io%2Fsyncano-validate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyedea-io%2Fsyncano-validate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyedea-io%2Fsyncano-validate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyedea-io%2Fsyncano-validate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eyedea-io","download_url":"https://codeload.github.com/eyedea-io/syncano-validate/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyedea-io%2Fsyncano-validate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280054107,"owners_count":26264509,"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-20T02:00:06.978Z","response_time":62,"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":["syncano","validation"],"created_at":"2025-03-30T01:38:37.298Z","updated_at":"2025-10-20T08:28:14.735Z","avatar_url":"https://github.com/eyedea-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Syncano Validator\n\n\u003e Client/Server side validation library based on Laravel.\n\n[![XO code style][xo-badge]][xo]\n[![CircleCI][circleci-badge]][circleci]\n[![codecov][codecov-badge]][codecov]\n\n[xo]: https://github.com/sindresorhus/xo\n[xo-badge]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg\n[circleci]: https://circleci.com/gh/eyedea-io/syncano-validate/tree/devel\n[circleci-badge]: https://circleci.com/gh/eyedea-io/syncano-validate.svg?style=shield\u0026circle-token=4f0733cbf425699a9ca0bc95d44ade178e5a7abd\n[codecov]: https://codecov.io/gh/eyedea-io/syncano-validate\n[codecov-badge]: https://codecov.io/gh/eyedea-io/syncano-validate/branch/devel/graph/badge.svg\n\n```\n$ npm install syncano-validate\n```\n\n## How to use\n\n```js\nimport {validate} from 'syncano-validate'\n\nconst data = {\n  firstName: 'John',\n  lastName: 'Doe',\n  username: 'john.doe'\n  email: 'john.doe@example.com',\n  age: 43,\n  gender: 'male',\n  phoneNumber: '555-444-333',\n  birthDate: '08/25/2017'\n}\n\nconst rules = {\n  firstName: 'required|min:2',\n  lastName: 'required|min:2',\n  username: 'required|unique:users,username',\n  email: 'required|email',\n  age: 'required|numeric|min:18',\n  gender: 'in:male,female',\n  phoneNumber: 'regex:[0-9]{3}?-?[0-9]{3}?-?[0-9]{3}',\n  birthDate: 'date'\n}\n\nvalidate(data, rules)\n  .then(() =\u003e {\n    // All params valid! Continue code...\n  })\n  .catch(errors =\u003e {\n    // Handle errors\n  })\n```\n\n## TODO:\n\n* After (Date)\n* Alpha Dash\n* Before (Date)\n* Between\n* Confirmed\n* Date Format\n* Different\n* Dimensions (Image Files)\n* File\n* Filled\n* Image (File)\n* In Array\n* IP Address\n* JSON\n* MIME Types\n* MIME Type By File Extension\n* Nullable\n* Not In\n* Present\n* Same\n* Size\n* String\n* Timezone\n* Unique (Database)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyedea-io%2Fsyncano-validate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyedea-io%2Fsyncano-validate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyedea-io%2Fsyncano-validate/lists"}