1.0.8 • Published 2 years ago

@erikbrandon-fs/utils v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

About This Package

This package contains a collection of four Express middlewares that validate emails, phone numbers, birthdays, and passwords for a project in the Programming for Web Applications class at Full Sail University. The regular expressions in this package were found on a few websites online.

Installation via NPM

npm install @erikbrandon-fs/utils

Usage

// Step 1 - Destructure the validation middlewares in a require or import statement.

// JavaScript
const {email, phone, birthday, password } = require('@erikbrandon-fs/utils');

// TypeScript
import { email, phone, birthday, password } from '@erikbrandon-fs/utils';

// Step 2 - Chain the middlewares to a route.
apiRouter.post('/signup', email, phone, birthday, password, signup);
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago