get-device-ip 1.0.2 → 1.0.4

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 +7 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -38,13 +38,14 @@ console.log('Primary IPv4:', ip.primaryIpv4);
38
38
 
39
39
  ```
40
40
  📊 Return Object Structure
41
- Calling getDeviceIP() returns a clean object:
42
41
 
43
- Property,Type,Description
44
- primaryIpv4,string,The first active local IPv4 address found.
45
- primaryIpv6,string,The first active local IPv6 address found.
46
- IPv4,string[],Array of all detected IPv4 addresses.
47
- IPv6,string[],Array of all detected IPv6 addresses.
42
+ {
43
+ IPv4: [ '192.168.0.100', '172.23.160.1' ],
44
+ IPv6: [ 'fe80::2ecc:c31a:a1fc:dcf0' ],
45
+ primaryIpv4: '192.168.0.100',
46
+ primaryIpv6: 'fe80::2ecc:c31a:a1fc:dcf0'
47
+ }
48
+
48
49
 
49
50
  ```
50
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "get-device-ip",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "A lightweight utility to get local IPv4 and IPv6 addresses.",
5
5
  "main": "./dist/script.cjs",
6
6
  "module": "./dist/script.js",