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.0.2 to 2.0.3

2

index.js

@@ -5,3 +5,3 @@ "use strict";

if (["linux", "darwin", "win32"].includes(platform)) {
if (["linux", "darwin", "win32", "android"].includes(platform)) {
module.exports.v4 = () => require(`./${platform}`).v4();

@@ -8,0 +8,0 @@ module.exports.v6 = () => require(`./${platform}`).v6();

{
"name": "default-gateway",
"version": "2.0.2",
"version": "2.0.3",
"description": "Get the default network gateway, cross-platform.",

@@ -21,3 +21,4 @@ "author": "silverwind <me@silverwind.io>",

"linux",
"win32"
"win32",
"android"
],

@@ -24,0 +25,0 @@ "files": [

@@ -6,3 +6,3 @@ # default-gateway

Obtains the machine's default gateway through `exec` calls to OS routing interfaces. Supports Linux, macOS and Windows. On Linux, 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. Supports Linux, macOS and Windows and Android. 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