@pknowles-fs/utils

1.0.11 • Public • Published

Utils Middleware

Overview

The utils middlewares package provides a set of Express.js middleware functions designed to validate user input for common fields such as email, phone number, birthday, and password. It is built with the intention to streamline the process of ensuring that incoming data adheres to expected formats before processing user signups or other forms of data entry.

Features

  1. Name Validation: Checks that the input is a valid name format
  2. Email Validation: Checks that the input is a valid email format.
  3. Phone Validation: Ensures the phone number matches a specific format (XXX-XXX-XXXX).
  4. Birthday Validation: Ensures that the birthday is in a specific format (MM/DD/YYYY).
  5. Password Validation: Confirms the password meets certain criteria for security (e.g.minimum length).

Installation

To install the package, run the following command in your project directory:

npm install @pknowles-fs/utils

Readme

Keywords

none

Package Sidebar

Install

npm i @pknowles-fs/utils

Weekly Downloads

1

Version

1.0.11

License

ISC

Unpacked Size

4.55 kB

Total Files

4

Last publish

Collaborators

  • pknowles-fs