{"id":20285638,"url":"https://github.com/marcisbee/valide","last_synced_at":"2026-05-11T14:35:38.907Z","repository":{"id":57390409,"uuid":"157529485","full_name":"Marcisbee/valide","owner":"Marcisbee","description":"💠Simple, chainable, multi lingual data validator","archived":false,"fork":false,"pushed_at":"2023-04-05T09:17:57.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T02:48:11.719Z","etag":null,"topics":["chainable","checker","i18n","javascript","js","nodejs","type","validation","validator"],"latest_commit_sha":null,"homepage":"","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/Marcisbee.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":"2018-11-14T10:09:57.000Z","updated_at":"2023-04-05T09:18:01.000Z","dependencies_parsed_at":"2024-10-23T01:47:15.248Z","dependency_job_id":"72ca5e50-7770-4f1c-bee3-55342b5672df","html_url":"https://github.com/Marcisbee/valide","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fvalide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fvalide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fvalide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fvalide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marcisbee","download_url":"https://codeload.github.com/Marcisbee/valide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780512,"owners_count":20019061,"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":["chainable","checker","i18n","javascript","js","nodejs","type","validation","validator"],"created_at":"2024-11-14T14:28:01.446Z","updated_at":"2025-11-30T17:04:08.344Z","avatar_url":"https://github.com/Marcisbee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Valide\n\n[![discord](https://dcbadge.vercel.app/api/server/a62gfaDW2e?style=flat-square)](https://discord.gg/a62gfaDW2e)\n\nValide is simple, chainable, multi lingual data validator.\n\n## Installation\n\nTo install the stable version:\n\n```\nnpm install --save valide\n```\n\nThis assumes you are using [npm](https://www.npmjs.com/) as your package manager.\n\nIf you're not, you can [access these files on unpkg](https://unpkg.com/valide/dist/), download them, or point your package manager to them.\n\n#### Browser Compatibility\n\nValide.js currently is compatible with browsers that support at least ES3.\n\n## Example usage\n\n```js\nimport { Valide } from 'valide';\n\nfunction validateEmail(value) {\n  return new Valide(value)\n    .required()\n    .email()\n    .error('E-mail :email is invalid!', { email: value })\n    .check();\n}\n\nvalidateEmail(''); // -\u003e \"Field is required\"\nvalidateEmail('foo'); // -\u003e \"E-mail foo is invalid!\"\nvalidateEmail('foo@example.com'); // -\u003e true\n```\n\nValide chain must always end with `.check()` to evaluate value.\nCheck method also can take in new value to check against rule set.\n\nEvery rule can have custom error message. To add it, simply chain `.error(string [, params])` after rule. By default every rule has english error message.\n\n### Currently available rules:\n\n- `.required()`\n- `.test(regex)`\n- `.includes(string)`\n- `.excludes(string)`\n- `.equal(string)`\n- `.notEqual(string)`\n- `.min(number)`\n- `.max(number)`\n- `.email(string)`\n\n---\n\n- `.error(string [, params])`\n\n## Stay In Touch\n\n- [Twitter](https://twitter.com/radi_js)\n- [Slack](https://join.slack.com/t/radijs/shared_invite/enQtMjk3NTE2NjYxMTI2LWFmMTM5NTgwZDI5NmFlYzMzYmMxZjBhMGY0MGM2MzY5NmExY2Y0ODBjNDNmYjYxZWYxMjEyNjJhNjA5OTJjNzQ)\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2018-present, Marcis (Marcisbee) Bergmanis\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcisbee%2Fvalide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcisbee%2Fvalide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcisbee%2Fvalide/lists"}