Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

no-regex-utils

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

no-regex-utils - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

dist/manipulations/index.d.ts

5

dist/index.d.ts

@@ -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; } });

1

dist/validations/index.d.ts
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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc