{"id":23143440,"url":"https://github.com/sh20raj/xvalidatorx","last_synced_at":"2025-08-17T14:33:30.281Z","repository":{"id":232336509,"uuid":"784081961","full_name":"SH20RAJ/XValidatorX","owner":"SH20RAJ","description":"A comprehensive validation library for common data validation tasks.","archived":false,"fork":false,"pushed_at":"2024-04-10T01:59:58.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T00:13:39.210Z","etag":null,"topics":["validator","validatorjs"],"latest_commit_sha":null,"homepage":"https://sh20raj.github.io/XValidatorX/","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/SH20RAJ.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}},"created_at":"2024-04-09T06:38:57.000Z","updated_at":"2024-04-20T17:29:11.000Z","dependencies_parsed_at":"2024-04-09T07:43:00.733Z","dependency_job_id":"8ba973b7-6bb3-46d1-b0c4-27b237061347","html_url":"https://github.com/SH20RAJ/XValidatorX","commit_stats":null,"previous_names":["sh20raj/xvalidatorx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SH20RAJ%2FXValidatorX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SH20RAJ%2FXValidatorX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SH20RAJ%2FXValidatorX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SH20RAJ%2FXValidatorX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SH20RAJ","download_url":"https://codeload.github.com/SH20RAJ/XValidatorX/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229920739,"owners_count":18144861,"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":["validator","validatorjs"],"created_at":"2024-12-17T15:13:28.783Z","updated_at":"2024-12-17T15:13:29.402Z","avatar_url":"https://github.com/SH20RAJ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XValidatorX\n\n[![npm version](https://img.shields.io/npm/v/xvalidatorx.svg)](https://www.npmjs.com/package/xvalidatorx)\n[![GitHub issues](https://img.shields.io/github/issues/SH20RAJ/XValidatorX)](https://github.com/SH20RAJ/XValidatorX/issues)\n[![GitHub stars](https://img.shields.io/github/stars/SH20RAJ/XValidatorX)](https://github.com/SH20RAJ/XValidatorX/stargazers)\n[![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2FSH20RAJ%2FXValidatorX%2F\u0026labelColor=%23f47373\u0026countColor=%232ccce4\u0026style=flat)](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2FSH20RAJ%2FXValidatorX%2F)\n[![Twitter Follow](https://img.shields.io/twitter/follow/SH20RAJ.svg?style=social)](https://twitter.com/SH20RAJ)\n\nA comprehensive and light weight validation library for common data validation tasks.\n\n## Installation\n\nYou can install `XValidatorX` via npm:\n\n```bash\nnpm install xvalidatorx\n```\n\nOr include it via CDN:\n\n```html\n\u003c!-- Latest release --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/SH20RAJ/XValidatorX@latest/xvalidatorx.js\"\u003e\u003c/script\u003e\n\n\u003c!-- \u003cscript src=\"https://cdn.jsdelivr.net/npm/xvalidatorx\"\u003e\u003c/script\u003e --\u003e\n\n\n\n\u003c!-- Specific version (replace '1.0.0' with the desired version) --\u003e\n\u003c!-- \u003cscript src=\"https://cdn.jsdelivr.net/npm/xvalidatorx@1.0.0\"\u003e\u003c/script\u003e --\u003e\n```\n\n## Usage\n\nHere's an example of how you can use `XValidatorX`:\n\n```javascript\nimport XValidatorX from 'xvalidatorx';\n\nconsole.log(XValidatorX.isEmail('test@example.com')); // true\nconsole.log(XValidatorX.isURL('https://www.example.com')); // true\n// More examples...\n```\n\n## Features\n\n- **isEmail(email)**: Checks if a string is a valid email address.\n- **isURL(url)**: Checks if a string is a valid URL.\n- **isNotEmptyString(str)**: Checks if a string is not empty.\n- **isPalindrome(str)**: Checks if a string is a palindrome.\n- **isWithinRange(num, min, max)**: Checks if a number is within a specified range.\n- **isInArray(value, array)**: Checks if a value exists in an array.\n- **isUUID(uuid)**: Checks if a string is a valid UUID.\n- **isHexColor(color)**: Checks if a string is a valid HEX color.\n- **isDateYYYYMMDD(dateString)**: Checks if a string is a valid date in the format `YYYY-MM-DD`.\n- **isCreditCard(cardNumber)**: Checks if a string is a valid credit card number.\n- **isPhoneNumber(phone)**: Checks if a string is a valid phone number.\n- **isPostalCode(postalCode, countryCode)**: Checks if a string is a valid postal code.\n- **isStrongPassword(password)**: Checks if a string is a strong password.\n- **isAlpha(str)**: Checks if a string contains only alphabetic characters.\n- **isAlphanumeric(str)**: Checks if a string contains only alphanumeric characters.\n- **isNumeric(str)**: Checks if a string contains only numeric characters.\n\n### Usage via CDN\n\nYou can also use `XValidatorX` directly in the browser via CDN:\n\n```html\n\u003c!-- Latest release --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/xvalidatorx\"\u003e\u003c/script\u003e\n\n\u003c!-- Specific version (replace '1.0.0' with the desired version) --\u003e\n\u003c!-- \u003cscript src=\"https://cdn.jsdelivr.net/npm/xvalidatorx@1.0.0\"\u003e\u003c/script\u003e --\u003e\n```\n\n### Documentation\n\n#### isEmail(email)\n\nChecks if a string is a valid email address.\n\n**Parameters:**\n- `email`: String - The email address to validate.\n\n**Example:**\n```javascript\nconst isValidEmail = XValidatorX.isEmail('test@example.com');\nconsole.log(isValidEmail); // true\n```\n\n#### isURL(url)\n\nChecks if a string is a valid URL.\n\n**Parameters:**\n- `url`: String - The URL to validate.\n\n**Example:**\n```javascript\nconst isValidURL = XValidatorX.isURL('https://www.example.com');\nconsole.log(isValidURL); // true\n```\n\n#### isNotEmptyString(str)\n\nChecks if a string is not empty.\n\n**Parameters:**\n- `str`: String - The string to check.\n\n**Example:**\n```javascript\nconst isValid = XValidatorX.isNotEmptyString('Hello');\nconsole.log(isValid); // true\n```\n\n\u003c!-- #### More Methods...\n\nYou can find detailed examples and parameters for all methods in the XValidatorX Documentation. --\u003e\n\n## Issues\n\nIf you encounter any issues or have suggestions, please feel free to [open an issue on GitHub](https://github.com/SH20RAJ/XValidatorX/issues).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n\u003e https://dev.to/sh20raj/xvalidatorx-a-lightweight-validation-library-for-javascript-2c59\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh20raj%2Fxvalidatorx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsh20raj%2Fxvalidatorx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh20raj%2Fxvalidatorx/lists"}