npm.io
2.0.5 • Published 4 years ago

@skapxd/validate

Licence
MIT
Version
2.0.5
Deps
2
Size
287 kB
Vulns
0
Weekly
0

��# 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 });

Keywords