Socket
Socket
Sign inDemoInstall

default-gateway

Package Overview
Dependencies
17
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.5.0

sunos.js

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();

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc