cidr-regex 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,6 +12,9 @@ $ npm install --save cidr-regex
12
12
  ```js
13
13
  import cidr from 'cidr-regex' // default regex is cidr v4
14
14
  import { cidrv4, cidrv6 } from 'cidr-regex'
15
+ // OR
16
+ var cidrv4 = require('cidr-regex').cidrv4
17
+ var cidrv6 = require('cidr-regex').cidrv6
15
18
 
16
19
  // is a CIDR v4
17
20
  cidr.test('18.101.25.153/24') // true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cidr-regex",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Regular expression for matching CIDR (Classless Inter-Domain Routing)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {