{"name":"internal-ip","version":"9.0.0","description":"Get your internal IP address","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/internal-ip.git"},"funding":"https://github.com/sindresorhus/internal-ip?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","sideEffects":false,"exports":{"types":"./index.d.ts","node":"./index.js","default":"./browser.js"},"engines":{"node":">=20"},"scripts":{"test":"xo && node --experimental-test-module-mocks --test && tsd"},"keywords":["ip","ipv6","ipv4","address","internal","local","machine","system","net","gateway"],"dependencies":{"is-ip":"^5.0.1","p-event":"^7.1.0"},"devDependencies":{"tsd":"^0.33.0","xo":"^1.2.3"},"gitHead":"63441374d8f56a2b58e1be5eaa7ae2da5582baa5","types":"./index.d.ts","_id":"internal-ip@9.0.0","bugs":{"url":"https://github.com/sindresorhus/internal-ip/issues"},"homepage":"https://github.com/sindresorhus/internal-ip#readme","_nodeVersion":"25.3.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-tZsNWgQ5xcpTRfAo6xwr+elUPvz9skGTQ2mDGsmJpm0SxkJDupDn3DTK9BX2kJz2Tn6s0gYlXl+tryMMAIMhJw==","shasum":"8796ca8956df09e73baf054a772db411177e4d04","tarball":"http://registry-npm.ywwl.com/internal-ip/download/internal-ip-9.0.0.tgz","fileCount":7,"unpackedSize":9067,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDqSK0xpe1NRC4uht0HwDYU3m5Gg0EE400w7/HITq1yIAiB8rBjIg2sUCVuaKYSCE5a2UxtkzhuwOJvQvswVZdlDXg=="}],"size":3170,"noattachment":false,"key":"/internal-ip/-/internal-ip-9.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/internal-ip_9.0.0_1770041627809_0.7340830407393006"},"_hasShrinkwrap":false,"readme":"# internal-ip\n\n> Get your internal IP address\n\n## Install\n\n```sh\nnpm install internal-ip\n```\n\n## Usage\n\n```js\nimport {internalIpV6, internalIpV4} from 'internal-ip';\n\nconsole.log(await internalIpV6());\n//=> 'fe80::1'\n\nconsole.log(await internalIpV4());\n//=> '10.0.0.79'\n```\n\n## API\n\nThe async functions use a UDP connection to determine the address of the internet-facing interface (no packets are sent). When that fails (for example, when offline), it falls back to scanning `os.networkInterfaces()`. The sync functions always use `os.networkInterfaces()`. If multiple non-internal interfaces are present and the internet-facing interface cannot be determined, `undefined` will be returned to avoid selecting the wrong interface.\n\n`internalIpV6Sync()` and `internalIpV4Sync()` are not supported in browsers and just return `undefined`.\n\n### internalIpV6()\n\nReturns the internal IPv6 address asynchronously.\n\n### internalIpV4()\n\nReturns the internal IPv4 address asynchronously.\n\n### internalIpV6Sync()\n\nReturns the internal IPv6 address synchronously.\n\n### internalIpV4Sync()\n\nReturns the internal IPv4 address synchronously.\n\n## Related\n\n- [internal-ip-cli](https://github.com/sindresorhus/internal-ip-cli) - CLI for this package\n- [public-ip](https://github.com/sindresorhus/public-ip) - Get your public IP address\n","publish_time":1770041627955,"_cnpm_publish_time":1770041627955,"dist-tags":{"latest":"9.0.0"}}