no-regex-utils
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -1,2 +0,3 @@ | ||
import { isEmail } from "./validations"; | ||
export { isEmail }; | ||
import { onlyNumbers } from "./manipulations"; | ||
import { isEmail, isIPv4 } from "./validations"; | ||
export { isEmail, isIPv4, onlyNumbers }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isEmail = void 0; | ||
exports.onlyNumbers = exports.isIPv4 = exports.isEmail = void 0; | ||
const manipulations_1 = require("./manipulations"); | ||
Object.defineProperty(exports, "onlyNumbers", { enumerable: true, get: function () { return manipulations_1.onlyNumbers; } }); | ||
const validations_1 = require("./validations"); | ||
Object.defineProperty(exports, "isEmail", { enumerable: true, get: function () { return validations_1.isEmail; } }); | ||
Object.defineProperty(exports, "isIPv4", { enumerable: true, get: function () { return validations_1.isIPv4; } }); |
export declare const isEmail: (value: string) => boolean; | ||
export declare const isIPv4: (value: string) => boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isEmail = void 0; | ||
exports.isIPv4 = exports.isEmail = void 0; | ||
const isEmail = (value) => { | ||
@@ -8,1 +8,5 @@ return new RegExp("^([a-z0-9_.+-]+)@([da-z.-]+).([a-z.]{2,6})$").test(value); | ||
exports.isEmail = isEmail; | ||
const isIPv4 = (value) => { | ||
return new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$").test(value); | ||
}; | ||
exports.isIPv4 = isIPv4; |
{ | ||
"name": "no-regex-utils", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "No Regex Utils - Common regex functions", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,2 +0,2 @@ | ||
# NO Regex | ||
# NO Regex Utils | ||
@@ -7,3 +7,3 @@ > A lot of regex functions so you don't have to worry about it | ||
`npm install no-regex` | ||
`npm install no-regex-utils` | ||
@@ -13,3 +13,3 @@ ## How to use | ||
```javascript | ||
import { isEmail } from "no-regex"; | ||
import { isEmail } from "no-regex-utils"; | ||
``` | ||
@@ -16,0 +16,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3969
9
39