default-gateway
Advanced tools
Comparing version 2.4.0 to 2.5.0
10
index.js
@@ -5,3 +5,11 @@ "use strict"; | ||
if (["android", "darwin", "freebsd", "linux", "openbsd", "win32"].indexOf(platform) !== -1) { | ||
if ([ | ||
"android", | ||
"darwin", | ||
"freebsd", | ||
"linux", | ||
"openbsd", | ||
"sunos", | ||
"win32" | ||
].indexOf(platform) !== -1) { | ||
module.exports.v4 = () => require(`./${platform}`).v4(); | ||
@@ -8,0 +16,0 @@ module.exports.v6 = () => require(`./${platform}`).v6(); |
{ | ||
"name": "default-gateway", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "Get the default network gateway, cross-platform.", | ||
@@ -24,2 +24,3 @@ "author": "silverwind <me@silverwind.io>", | ||
"openbsd", | ||
"sunos", | ||
"win32" | ||
@@ -34,2 +35,3 @@ ], | ||
"openbsd.js", | ||
"sunos.js", | ||
"win32.js" | ||
@@ -36,0 +38,0 @@ ], |
@@ -6,3 +6,3 @@ # default-gateway | ||
Obtains the machine's default gateway through `exec` calls to OS routing interfaces. Supports Linux, macOS and Windows and Android. On Linux and Android, the `ip` command must be available (usually provided by the `iproute2` package). | ||
Obtains the machine's default gateway through `exec` calls to OS routing interfaces. On Linux and Android, the `ip` command must be available (usually provided by the `iproute2` package). | ||
@@ -9,0 +9,0 @@ ## Installation |
11219
11
238
6