{"id":24511716,"url":"https://github.com/devnax/validme","last_synced_at":"2025-07-24T00:39:33.249Z","repository":{"id":271551623,"uuid":"913816851","full_name":"devnax/validme","owner":"devnax","description":"A comprehensive validation library for various data types","archived":false,"fork":false,"pushed_at":"2025-03-04T09:44:51.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T10:34:56.043Z","etag":null,"topics":["data-validation","form-validation","javascript-validation","react-validation","validation"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/validme","language":"TypeScript","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/devnax.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":"2025-01-08T12:09:15.000Z","updated_at":"2025-03-04T09:44:54.000Z","dependencies_parsed_at":"2025-01-09T00:52:16.716Z","dependency_job_id":null,"html_url":"https://github.com/devnax/validme","commit_stats":null,"previous_names":["devnax/validme"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnax%2Fvalidme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnax%2Fvalidme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnax%2Fvalidme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnax%2Fvalidme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devnax","download_url":"https://codeload.github.com/devnax/validme/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713388,"owners_count":20335566,"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":["data-validation","form-validation","javascript-validation","react-validation","validation"],"created_at":"2025-01-22T00:40:53.223Z","updated_at":"2025-03-15T09:44:23.068Z","avatar_url":"https://github.com/devnax.png","language":"TypeScript","readme":"This documentation provides an overview of all the functions available in the `validme` package, categorized into different sections. Each function is described along with its purpose and parameters.\n\n## Package Information\n- **Name:** validme\n- **GitHub Repository:** [devnax/validme](https://github.com/devnax/validme)\n- **NPM Package:** [validme](https://www.npmjs.com/package/validme)\n\n## Table of Contents\n- [Package Information](#package-information)\n- [Table of Contents](#table-of-contents)\n  - [Basic Validations](#basic-validations)\n  - [String Validations](#string-validations)\n  - [Number Validations](#number-validations)\n  - [Date/Time Validations](#datetime-validations)\n  - [Boolean Validations](#boolean-validations)\n  - [Array Validations](#array-validations)\n  - [Object Validations](#object-validations)\n  - [File Validations](#file-validations)\n  - [Advanced Validations](#advanced-validations)\n\n---\n\n### Basic Validations\n\n| Function      | Description                                         | Parameters        |\n| ------------- | --------------------------------------------------- | ----------------- |\n| `isRequired`  | Checks if a value is defined and not empty.         | `value`           |\n| `minLength`   | Validates that a string's length is at least `min`. | `value`, `min`    |\n| `maxLength`   | Validates that a string's length is at most `max`.  | `value`, `max`    |\n| `exactLength` | Validates that a string's length matches `length`.  | `value`, `length` |\n| `pattern`     | Validates a string against a regex pattern.         | `value`, `regex`  |\n\n---\n\n### String Validations\n\n| Function           | Description                                               | Parameters |\n| ------------------ | --------------------------------------------------------- | ---------- |\n| `isEmail`          | Validates an email address.                               | `value`    |\n| `isURL`            | Validates a URL.                                          | `value`    |\n| `isAlpha`          | Checks if a string contains only alphabets.               | `value`    |\n| `isAlphaNumeric`   | Checks if a string contains only alphanumeric characters. | `value`    |\n| `isSlug`           | Checks if a string is a valid slug.                       | `value`    |\n| `isLowercase`      | Checks if a string is in lowercase.                       | `value`    |\n| `isUppercase`      | Checks if a string is in uppercase.                       | `value`    |\n| `isMixedCase`      | Checks if a string contains both uppercase and lowercase. | `value`    |\n| `isStrongPassword` | Validates if a string is a strong password.               | `value`    |\n| `isMediumPassword` | Validates if a string is a medium-strength password.      | `value`    |\n\n---\n\n### Number Validations\n\n| Function     | Description                               | Parameters            |\n| ------------ | ----------------------------------------- | --------------------- |\n| `isNumeric`  | Checks if a value is a number.            | `value`               |\n| `isInteger`  | Checks if a value is an integer.          | `value`               |\n| `isFloat`    | Checks if a value is a float.             | `value`               |\n| `isPositive` | Checks if a value is positive.            | `value`               |\n| `isNegative` | Checks if a value is negative.            | `value`               |\n| `minValue`   | Validates that a value is at least `min`. | `value`, `min`        |\n| `maxValue`   | Validates that a value is at most `max`.  | `value`, `max`        |\n| `inRange`    | Validates that a value is within a range. | `value`, `min`, `max` |\n\n---\n\n### Date/Time Validations\n\n| Function      | Description                                      | Parameters      |\n| ------------- | ------------------------------------------------ | --------------- |\n| `isValidDate` | Checks if a value is a valid date.               | `value`         |\n| `minDate`     | Checks if a date is on or after a minimum date.  | `value`, `min`  |\n| `maxDate`     | Checks if a date is on or before a maximum date. | `value`, `max`  |\n| `beforeDate`  | Checks if a date is before a specific date.      | `value`, `date` |\n| `afterDate`   | Checks if a date is after a specific date.       | `value`, `date` |\n| `isTime`      | Checks if a value is a valid time format.        | `value`         |\n| `isDateTime`  | Checks if a value is a valid datetime.           | `value`         |\n\n---\n\n### Boolean Validations\n\n| Function    | Description                     | Parameters |\n| ----------- | ------------------------------- | ---------- |\n| `isBoolean` | Checks if a value is a boolean. | `value`    |\n\n---\n\n### Array Validations\n\n| Function      | Description                                           | Parameters             |\n| ------------- | ----------------------------------------------------- | ---------------------- |\n| `minItems`    | Validates that an array has at least `min` items.     | `value`, `min`         |\n| `maxItems`    | Validates that an array has at most `max` items.      | `value`, `max`         |\n| `uniqueItems` | Checks if all items in an array are unique.           | `value`                |\n| `itemType`    | Checks if all items in an array satisfy a type check. | `value`, `typeCheckFn` |\n\n---\n\n### Object Validations\n\n| Function          | Description                                  | Parameters                  |\n| ----------------- | -------------------------------------------- | --------------------------- |\n| `hasRequiredKeys` | Checks if an object contains required keys.  | `obj`, `keys`               |\n| `keyType`         | Checks if a key in an object matches a type. | `obj`, `key`, `typeCheckFn` |\n| `hasExactKeys`    | Checks if an object contains exact keys.     | `obj`, `keys`               |\n| `isEmptyObject`   | Checks if an object is empty.                | `obj`                       |\n\n---\n\n### File Validations\n\n| Function      | Description                               | Parameters               |\n| ------------- | ----------------------------------------- | ------------------------ |\n| `isFileType`  | Checks if a file is of an allowed type.   | `fileName`, `extensions` |\n| `maxFileSize` | Checks if a file size is below a maximum. | `fileSize`, `max`        |\n| `minFileSize` | Checks if a file size is above a minimum. | `fileSize`, `min`        |\n\n---\n\n### Advanced Validations\n\n| Function        | Description                        | Parameters |\n| --------------- | ---------------------------------- | ---------- |\n| `isCreditCard`  | Validates a credit card number.    | `value`    |\n| `isUUID`        | Validates a UUID.                  | `value`    |\n| `isIPAddress`   | Validates an IP address.           | `value`    |\n| `isMACAddress`  | Validates a MAC address.           | `value`    |\n| `isJSON`        | Checks if a value is valid JSON.   | `value`    |\n| `isHexadecimal` | Validates a hexadecimal string.    | `value`    |\n| `isBase64`      | Validates a Base64-encoded string. | `value`    |\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnax%2Fvalidme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevnax%2Fvalidme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnax%2Fvalidme/lists"}