{"id":13678131,"url":"https://github.com/mboussaid/VerifyJS","last_synced_at":"2025-04-29T12:33:36.847Z","repository":{"id":139985431,"uuid":"337706208","full_name":"mboussaid/VerifyJS","owner":"mboussaid","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-10T11:41:42.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-02T13:20:52.047Z","etag":null,"topics":["javascript","js","library","regex","verification"],"latest_commit_sha":null,"homepage":"https://mboussaid.github.io/VerifyJS/","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/mboussaid.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":"2021-02-10T11:41:32.000Z","updated_at":"2021-02-10T19:25:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"8789f3ac-397f-4904-a48d-43b9f7933622","html_url":"https://github.com/mboussaid/VerifyJS","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/mboussaid%2FVerifyJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mboussaid%2FVerifyJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mboussaid%2FVerifyJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mboussaid%2FVerifyJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mboussaid","download_url":"https://codeload.github.com/mboussaid/VerifyJS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224173560,"owners_count":17268130,"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","js","library","regex","verification"],"created_at":"2024-08-02T13:00:50.442Z","updated_at":"2024-11-11T20:31:02.770Z","avatar_url":"https://github.com/mboussaid.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\n# VerifyJS Documentation\n\n\nthis function allows you to add a keyup event handler and each time when you change the value this function checks if the value of the input match the regular expression if true then add your custom success classname else add your custom error classname \n\u003e syntax \n\n```javascript\n\nverify(element,regExp,successClass , errorClass);\n\n```\n\u003e example \n\n\n\ncreate a success and error classNames \n```css\n.success{\n\tbackgroud:green;\n\tcolor:#fff;\n}\n.error{\n\tbackgroud:red;\n\tcolor:#fff;\n}\n\n\n```\n\n```html\n\u003cinput id='test-input' type=\"text\" placeholder=\"\" /\u003e\n\n\n```\n\n\n```javascript\n/// check if the length of the input is 8 at least\nverify('#test-input',/^\\w{8,}$/,'success','error');\n\n/// example for email \nverify('#test-input',/^\\w+@\\w+.\\w+$/,'success','error');\n\n/// example for phone number\nverify('#test-input',/^(+2126|06)\\d{8}$/,'success','error');\n\n/// example for url \nverify('#test-input',/^(http:\\/\\/|https:\\/\\/)\\w+.\\w+\\.\\w+/,'success','error');\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmboussaid%2FVerifyJS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmboussaid%2FVerifyJS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmboussaid%2FVerifyJS/lists"}