NO Regex Utils
Some regex functions so you don't have to worry about it
Install
npm install no-regex-utils
How to use
import NoRegex from "no-regex-utils";
Methods
Validations
isEmail
NoRegex.isEmail("fernando@email.com");
isIPv4
NoRegex.isIPv4("192.168.0.1");
isIPv6
NoRegex.isIPv6("2001:0db8:85a3:0000:0000:8a2e:0370:7334");
isUsername
NoRegex.isUsername(
"user_test"
{
minLength: int,
maxLength: int,
underline: boolean,
dash: boolean,
})
isUrl
NoRegex.isUrl("https://google.com");
Manipulations
onlyNumbers
NoRegex.onlyNumbers("test123test");
onlyLetters
NoRegex.onlyLetters(
"lE123tterS123"
{
lowercase: boolean,
uppercase: boolean,
})
Author
Fernando Vargas Filho
License
This project is licensed under
MIT License