{"_id":"@devspeed/validatorjs","_rev":"1-8bd6d8945f5a6384ba42cce647a3bf9f","name":"@devspeed/validatorjs","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@devspeed/validatorjs","version":"1.0.0","description":"advance string validator and hopefully more.","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"imani brown"},"license":"ISC","keywords":["validator","string","string validator","validatorjs","devspeed"],"_id":"@devspeed/validatorjs@1.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-vpAqs32iTsB1+/CTlSW7GRr38BQlSP+RJuY+zif6wSySY65Qmcwlor4ryKjcf2zq18up3cT0VCX4Q8ZmgqT8Yg==","shasum":"3e628ff464a6a47588b163d07e2814f66c8bc24d","tarball":"https://registry.npmjs.org/@devspeed/validatorjs/-/validatorjs-1.0.0.tgz","fileCount":7,"unpackedSize":18305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHy4LheynUUvzRYwV0cBeE8TbLx1BZo6FwfRh6pZVjR4AiEAnIc6/4Vrmf+QdTYAt7JxfXMj7vLA730WAVlYD2Z5mpM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHQCbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrclxAAlxSzOKPapRUy95f1dFJ2VwRmair61RaJzQgagLmJJ2RIfbqY\r\nH4PunoSOQj/Q+IkzB591Tohhyy24M7CiWHm8IvLJ/S+WMbhTzNkgDT/ImffX\r\nHy0AbzgSRdiJqgzxnanLRxG7XOk+t8vD6YdcFQkoggguKbl1LvvVFh5nZU4V\r\nya6InFotNzB00E+2jmryb4XgtIsQ6lfLTTphIqUPZuNj3sHPFG612T391DMW\r\nOttADLYu+RYVLQXhAPY5vUTMpjDdXCj00dGrMLWiMykp+J4IY9GJLFHcNp0A\r\n9t8keSXom7tYdEijOJnqzP9V54gRRfzjNc8OfqGjVQfTxbwfF3ye/L8xMlgN\r\n0uSm8WqCUjzVaAKLCel1Wds1xGVtv15FlhCjBVM/JTKS7VSscl6dE/nWGcfz\r\nWMRMa4n/60zjxlbSBNItf4XedqamLsRs6dY1bi1OaNql/iX0S5vWLkbtzRSe\r\nzywLa/GlL+VnLxfyazAk4AXUi+he6gXcZaL86MMCAqsZFvZklnSvQZF6oMly\r\n7YaOB/uJvHnQ3GhDEMyguS0HEfUCENDW0dAFI+5sTY1oOGNqF0ZumAIK+Pa3\r\n1/45hS5lR6uXdRM1RlTmQt0A/CdgYzNrlCksOflmYJBXLML/Uo8M0CplhbDd\r\nFsflDsKgAYuHOE0F+UG5Q1tvlKbqzCwXAMo=\r\n=LQj5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"silentwolf-dev","email":"omariimanibrown421@gmail.com"},"directories":{},"maintainers":[{"name":"silentwolf-dev","email":"omariimanibrown421@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validatorjs_1.0.0_1679622299538_0.008625684091248198"},"_hasShrinkwrap":false},"1.0.1":{"name":"@devspeed/validatorjs","version":"1.0.1","description":"A powerful and easy-to-use validator for JavaScript objects, with support for nested fields, custom error messages, and more. Ideal for use in Node.js and web applications, @devspeed/validatorjs can help you validate user input, API requests, and more, wi","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"imani brown"},"license":"MIT","keywords":["validator","string","string validator","validatorjs","devspeed"],"_id":"@devspeed/validatorjs@1.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-/yhOrhGwKuac5edrFq0+70c13sCMsteICfuUl1HxY3C49bc8DT3J2FYA0pZzXdKoiIKWLcIv/wcExnGDkaf01Q==","shasum":"1d1838a7c5967639fe385fb89bd810811468802d","tarball":"https://registry.npmjs.org/@devspeed/validatorjs/-/validatorjs-1.0.1.tgz","fileCount":7,"unpackedSize":26191,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9uloCaeh532DcUn1Vsg2qRIwfmZZd83HujAJ6kKQbHQIhAICZJ35Fsj9ay8DUE9//+ZZ0QH+NMZLd1/EjU3XMnzsn"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHmqIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoH2w/+KFOwYHNLpXk59/deaQtFh5uJk21VDJjVU/k/pFMh+IM59+r6\r\nIQtsf4oCFmQYyMJE27vGRZdBT3AkN7ENuD8madnLnXKc41MmhSjNsd3ilSJu\r\nSgwNsmocfQegkcSeSedTm4/rEqdMmf/Ak28+PHm1VfkZW0BaSJVY3S6AeUj6\r\n3Q+1p+IXKxBiBlpk9Gkq+MBcdG9OF3N98ksOwe3ynqmaCDCe7EEihRHKlwSm\r\neDOsALhzuAT+t1ghT1Y3Da8IudwtIrSIuJB0dpXOMXaRAOrVqchyIjrNxNjU\r\nXPMYqcEh1AbuzPkY7gJJnzO1WC/wimBQ1VwwZ8IZn5/VEK7IWmlopwn3PX6f\r\n1rb65S/FK3AL03XCGm0R0hurD2MFQFJoO4xTIzfjmtxzkn8gP+MOSm890kGm\r\nqTrqVXFxqmpRcF86gsiai0b5ljETQkKiDZs8cLkauP0jCRnype2cwUTUlVit\r\nU5wfmNoiJoQTqet3e3VP1gdo2oPlhpR2bcYVP5bcItoIs3FTmKUkaB4z34Rw\r\nUv/3Er1V2JB87jNd3VqTujtWIE1wNTeiVYGatrxdkU9yQt5uoue+/qlIBCXH\r\nKrZGX1YdPHW6DiasFplZxh78o4J8wSFrH5nEBLT5vR3Yy0pAanxgy/Px1K57\r\nVt8EMtONnARgR+rNmwoXqUAKo8FczSGiqpA=\r\n=1cO5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"silentwolf-dev","email":"omariimanibrown421@gmail.com"},"directories":{},"maintainers":[{"name":"silentwolf-dev","email":"omariimanibrown421@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validatorjs_1.0.1_1679714952455_0.6609728516087048"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-24T01:44:59.446Z","1.0.0":"2023-03-24T01:44:59.703Z","modified":"2023-03-25T03:29:12.781Z","1.0.1":"2023-03-25T03:29:12.650Z"},"maintainers":[{"name":"silentwolf-dev","email":"omariimanibrown421@gmail.com"}],"description":"A powerful and easy-to-use validator for JavaScript objects, with support for nested fields, custom error messages, and more. Ideal for use in Node.js and web applications, @devspeed/validatorjs can help you validate user input, API requests, and more, wi","keywords":["validator","string","string validator","validatorjs","devspeed"],"author":{"name":"imani brown"},"license":"MIT","readme":"# @devspeed/validatorjs\r\n\r\nA JavaScript library for validating input strings based on various rules\r\n\r\n## Installation\r\n\r\nInstall using npm:\r\n\r\n```bash\r\n   npm install @devspeed/validatorjs\r\n```\r\n\r\n## Usage\r\n\r\nTo use the library, simply import it into your project:\r\n\r\n```js\r\nimport Validator from '@devspeed/validatorjs';\r\n\r\nconst validator = new Validator('example@gmail.com', {\r\n    validateEmpty: false,\r\n    validateEmail: true,\r\n    maxLength: 50,\r\n});\r\n\r\nconst validationResult = validator.getValidation();\r\nconsole.log(validationResult.isValid); // true\r\n```\r\n\r\n## Methods\r\n\r\n\r\n| Method | Description|\r\n| ---------------|----------------|\r\n|`isEmpty()`\t|Checks if the input string is empty.|\r\n|`maxLength(number)`|\tChecks if the input string exceeds the specified maximum length.|\r\n|`minLength(number)`\t|Checks if the input string is shorter than the specified minimum length.|\r\n|`isEmail()\t`|Checks if the input string is a valid email address.|\r\n|`isDate()`\t|Checks if the input string is a valid date in the format DD/MM/YYYY.|\r\n|`requireUppercase()`\t|Checks if the input string contains at least one uppercase letter.|\r\n|`requireLowercase()`\t|Checks if the input string contains at least one lowercase letter.|\r\n|`containSpecialChar(specialChar)`\t|Checks if the input string contains the specified special character.|\r\n|`getValidation()`\t| Returns an object containing a boolean value indicating whether the input string is valid, as |well as an array of validation errors if applicable. |\r\n\r\n\r\nNote: All methods return the Validator instance to allow chaining.\r\n\r\n## Options\r\n\r\nThe Validator constructor takes an optional options object that can contain the following properties:\r\n\r\n\r\n| Option |\tDescription |\r\n| ---------------|----------------|\r\n|`validateEmpty` |\tWhether to validate that the input string is not empty (default: true).|\r\n| `validateEmail`|\tWhether to validate that the input string is a valid email address (default: false).|\r\n| `validateDate` |\tWhether to validate that the input string is a valid date in the format DD/MM/YYYY (default: false).|\r\n|`maxLength`|\tThe maximum allowed length for the input string.|\r\n|`minLength`|\tThe minimum required length for the input string.|\r\n|`requireUppercase`| Whether the input string must contain at least one uppercase letter (default: false).|\r\n|`requireLowercase`|Whether the input string must contain at least one lowercase letter (default: false).|\r\n\r\n## License\r\n\r\nThis library is licensed under the MIT License.\r\n\r\n\r\n","readmeFilename":"readme.md"}