jsmp-infra-olha-vladova-validators
v1.0.1
Published
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Downloads
3
Readme
jsmp-infra-olha-vladova-validators
A simple module to validate an e-mail address and ipv4
Installation
Install via NPM:
npm install jsmp-infra-olha-vladova-validators
Usage
To validate email:
const { isEmail } = require("jsmp-infra-olha-vladova-validators");
isEmail("[email protected]"); // true
To validate ipv4:
const { isIPv4 } = require("jsmp-infra-olha-vladova-validators");
isIPv4("192.168.255.255"); // true
Tests
npm run test:unit
License
MIT License