Socket
Socket
Sign inDemoInstall

network-everywhere

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

network-everywhere

## Goal


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

network-everywhere

Goal

os.networkInterfaces() only return interfaces that have been assigned a network address. This package has been made to ensure that we always retrieve a mac address (even if we are offline or the wire is unplugged).

Usage

const { networkEverywhere } =  require('network-everywhere')
try {
	const  activeInterface  =  await  networkEverywhere.getActiveInterface()
	const  ipAddress  =  await  networkEverywhere.getIpAddress()
	const  allMacAddresses  =  await  networkEverywhere.getAllMacAddresses()
	console.log('activeInterface:', activeInterface)
	// activeInterface: Object {ip: "192.168.63.101", mac: "8c:85:90:54:19:f3"}
	console.log('ipAddress:', ipAddress)
	// ipAddress: 192.168.63.101
	console.log('allMacAddresses:', allMacAddresses)
	// allMacAddresses:Array(8) ["8c:85:90:54:19:f3", "0e:85:90:54:19:f3", "6e:b4:f4:a6:4e:1f", "82:d4:66:81:2c:00", "82:d4:66:81:2c:01", "82:d4:66:81:2c:05", "82:d4:66:81:2c:04", "ac:de:48:00:11:22"]
} catch(e) {
	console.error(e)
}

Keywords

FAQs

Package last updated on 21 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc