{"id":24383315,"url":"https://github.com/firstandthird/valid","last_synced_at":"2025-04-11T01:12:23.307Z","repository":{"id":10889042,"uuid":"13180044","full_name":"firstandthird/valid","owner":"firstandthird","description":"Javascript library to validate input fields in a form","archived":false,"fork":false,"pushed_at":"2016-12-23T17:43:40.000Z","size":153,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-11T01:12:17.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/firstandthird.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-28T20:14:19.000Z","updated_at":"2022-01-31T14:11:07.000Z","dependencies_parsed_at":"2022-09-03T00:01:01.609Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/valid","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fvalid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fvalid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fvalid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fvalid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/valid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322571,"owners_count":21084337,"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":[],"created_at":"2025-01-19T10:14:14.040Z","updated_at":"2025-04-11T01:12:23.291Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","readme":"#valid\n\nJavascript library to validate input fields in a form\n\n##Installation\n\n###Bower\n\n`bower install valid`\n\n###Manual Download\n\n- [Development]()\n- [Production]()\n\n##Usage\n\nHTML:\n```html\n\u003cform\u003e\n  \u003clabel\u003eName: \u003c/label\u003e\u003cinput name=\"name\" type=\"text\" data-valid-required /\u003e\n  \u003clabel\u003eEmail: \u003c/label\u003e\u003cinput type=\"text\" data-valid-pattern=\"[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\" name=\"email\" /\u003e\n\u003c/form\u003e\n```\n\nJS:\n```javascript\nvar errors = valid($('form'));\n\nif (errors) {\n  console.log(errors);\n  // format:\n  // [{ element: \u003cinput\u003e, type: 'required' }, { element: \u003cinput\u003e, type: 'pattern' }]\n} else {\n  console.log('no errors');\n}\n\n```\n\n\n##Development\n\n###Requirements\n\n- node and npm\n- bower `npm install -g bower`\n- grunt `npm install -g grunt-cli`\n\n###Setup\n\n- `npm install`\n- `bower install`\n\n###Run\n\n`grunt dev`\n\nor for just running tests on file changes:\n\n`grunt ci`\n\n###Tests\n\n`grunt mocha`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fvalid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fvalid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fvalid/lists"}