{"id":22747179,"url":"https://github.com/one-com/one-validation","last_synced_at":"2025-04-14T11:33:52.448Z","repository":{"id":2056680,"uuid":"2994795","full_name":"One-com/one-validation","owner":"One-com","description":"Regexp based validation collection for common internet validation tasks","archived":false,"fork":false,"pushed_at":"2023-08-30T13:54:47.000Z","size":129,"stargazers_count":36,"open_issues_count":5,"forks_count":4,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-04-11T08:06:39.707Z","etag":null,"topics":[],"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/One-com.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":"2011-12-16T13:31:46.000Z","updated_at":"2025-02-28T03:02:25.000Z","dependencies_parsed_at":"2024-06-18T20:02:07.495Z","dependency_job_id":"a55c0fcf-4cc1-4716-9cff-ce916ccdecbb","html_url":"https://github.com/One-com/one-validation","commit_stats":{"total_commits":144,"total_committers":8,"mean_commits":18.0,"dds":0.4722222222222222,"last_synced_commit":"408156865c11ac0ee4c7b93bbfa87689356f6cd6"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-com%2Fone-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-com%2Fone-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-com%2Fone-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-com%2Fone-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/One-com","download_url":"https://codeload.github.com/One-com/one-validation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248872203,"owners_count":21175368,"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":"2024-12-11T03:13:34.094Z","updated_at":"2025-04-14T11:33:52.354Z","avatar_url":"https://github.com/One-com.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# one-validation\n\n[![NPM version](https://badge.fury.io/js/one-validation.png)](http://badge.fury.io/js/one-validation)\n[![Build Status](https://travis-ci.org/One-com/one-validation.png?branch=master)](https://travis-ci.org/One-com/one-validation)\n[![Coverage Status](https://coveralls.io/repos/One-com/one-validation/badge.png)](https://coveralls.io/r/One-com/one-validation)\n[![Dependency Status](https://david-dm.org/One-com/one-validation.png)](https://david-dm.org/One-com/one-validation)\n\nThis is a collection of regular expressions for general validation purposes.\nThe basic design concept is to split up the regexes into semantic parts of the pattern to match.\nAs an example a url consists of many parts like scheme, optional userinfo, subdomain, domain, toplevel domain, path, query and fragment.\nIt is a lot easier to write a maintainable and reusable regular expression by mathing each of these parts individually and write a regex that combines the individual later.\n\nThe library includes a TLD whitelist that can be updated using make.\n\nThis module works as a NodeJS CommonJS module, a require.js AMD module and falls back to exposing itself in the global scope on `one.validation` if included directly in the page.\n\nPackage managers:\n* npm: `npm install one-validation`\n* bower: `bower install validation`\n\n## Supported patterns\n\n* domain\n* email\n* url\n\n## Examples\n\n### domain and domainIdn\n\n```\nvalidation.domain.test('foo.co.uk');\nreturn true;\n```\n\n```\nvalidation.domainIdn.test('hällo-test.de');\nreturn true;\n```\n\n### email and emailIdn\n\n```\nvalidation.email.test('test@foo.co.uk');\nreturn true;\n```\n\n```\nvalidation.domainIdn.test('test@hällo-test.de');\nreturn true;\n```\n\n## Building\n\n```\nnpm install\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-com%2Fone-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-com%2Fone-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-com%2Fone-validation/lists"}