A simple module to validate an e-mail address and ipv4
Install via NPM:
npm install jsmp-infra-olha-vladova-validators
To validate email:
const { isEmail } = require("jsmp-infra-olha-vladova-validators"); isEmail("test@email.com"); // true
To validate ipv4:
const { isIPv4 } = require("jsmp-infra-olha-vladova-validators"); isIPv4("192.168.255.255"); // true
npm run test:unit
MIT License