Very simple module for validating incoming data:
- name
- phone number
- npm i validation-package
- Require package:
- require('validation-package')
- Use package methods:
- validation.email(data-to-check)
- name
- phone
Important: all methods return true or false, all other actions on your side