Skip to content

A nodejs module which determines the status of devices on the network

Notifications You must be signed in to change notification settings

koloo91/network-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

network-scanner

A nodejs module which determines the status of devices on the network

Installation

Linux

In your terminal, install arp-scan:

sudo apt-get install arp-scan   

macOS

In your terminal, install arp-scan:

brew install arp-scan   

Usage

const scanner = require('local-network-scanner');
scanner.scan({arguments: ["-I", "en0"]}, devices => {
	console.log(devices);
});

Example

To run the example use:

node example.js

Scan result

  [
   {
      "ip":"10.0.2.2",
      "mac":"52:54:00:12:35:02",
      "name":"Raspberry Pi Foundation"
   },
   {
      "ip":"10.0.2.3",
      "mac":"52:54:00:12:35:03",
      "name":"VMware, Inc."
   },
   {
      "ip":"10.0.2.4",
      "mac":"52:54:00:12:35:04",
      "name":"(Unknown)"
   }
]

About

A nodejs module which determines the status of devices on the network

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •