{"id":17117026,"url":"https://github.com/c-lodder/validatejs-es6","last_synced_at":"2025-03-24T00:54:34.738Z","repository":{"id":87373686,"uuid":"154662705","full_name":"C-Lodder/validatejs-es6","owner":"C-Lodder","description":"Small, fast and flexible Javascript validation library","archived":false,"fork":false,"pushed_at":"2019-02-15T10:36:01.000Z","size":36,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T07:30:01.117Z","etag":null,"topics":["javascript","validate","validate-js","vanilla-js"],"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/C-Lodder.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}},"created_at":"2018-10-25T11:54:17.000Z","updated_at":"2019-02-15T10:36:03.000Z","dependencies_parsed_at":"2023-04-04T17:31:35.899Z","dependency_job_id":null,"html_url":"https://github.com/C-Lodder/validatejs-es6","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/C-Lodder%2Fvalidatejs-es6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C-Lodder%2Fvalidatejs-es6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C-Lodder%2Fvalidatejs-es6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C-Lodder%2Fvalidatejs-es6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/C-Lodder","download_url":"https://codeload.github.com/C-Lodder/validatejs-es6/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245191633,"owners_count":20575248,"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":["javascript","validate","validate-js","vanilla-js"],"created_at":"2024-10-14T17:50:25.094Z","updated_at":"2025-03-24T00:54:34.730Z","avatar_url":"https://github.com/C-Lodder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ValidateJS-ES6\n\nBlazing fast Javascript validation library\n\n# Usage\n\n### Include the validation script on your page:\n```\n\u003cscript src=\"validate.min.js\"\u003e\u003c/script\u003e\n```\nor import it:\n```\nimport Validator from \"./validate.min.js\"\n```\n\nShould you require support for Internet Explorer, use `validate-es5.min.js` intead\n\n### Create a simple input field:\n```\n\u003cinput type=\"text\" id=\"name\"\u003e\n```\n\n### Basic usage:\n```\nconst Validation = new Validator({\n\trules: {\n\t\t// Ensure the property matches that of the input ID\n\t\tname: {\n\t\t\trequired: true,\n\t\t},\n\t},\n\tmessages: {\n\t\tname: {\n\t\t\trequired: 'Please enter your name',\n\t\t},\n\t},\n\terrorPlacement: (error, element) =\u003e {\n\t\talert(error);\n\t\t// You can append the error to an element below the input or anything else to your liking\n\t}\n});\n```\n\n### Validate an element\n```\nconst isValid = Validation.validate(document.getElementById('name'));\n\n// Returns true or false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-lodder%2Fvalidatejs-es6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-lodder%2Fvalidatejs-es6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-lodder%2Fvalidatejs-es6/lists"}