Utilities for Logging and Input Validation
npm install psgutilsrc/logger.js]: Contains logging utilities for color-coded and error-specific logs.
src/regex.js]: Defines reusable regular expressions for validating inputs like emails, passwords, phone numbers, and usernames.
src/validate.js]: Implements validation functions for input arrays, field counts, and required fields.
src/colors.js]: Defines ANSI console colors.
validate]: A function that validates E-mail, Password, Username and Phone Number type user inputs. Parameters for using the function: validate(type, input).
validateFieldCount]: Ensures the correct number of fields are provided. Parameter: Desired number of fields
validateInputArray]: Validates if input data is array. Parameter: Array of desired fields
validateRequiredFields]: Checks for the presence of required fields. Parameter: Array of desired fields
colorLog]: Logs messages with customizable colors. Use it with app.use()
errorLog]: Logs error messages in a standardized format. Use it with app.use()