2.0.5 • Published 2 years ago
@skapxd/validate v2.0.5
��# How to use
import { regexValidate, MapOfRegExpValidate } from "@skapxd/regex-validate";
/** @type {boolean} */
const isValid = regexValidate({
stringToValidate: "test@test.test",
regExp: MapOfRegExpValidate.email, // any regular expression -> /any/
});
console.log({ isValid });