local-network-scanner

0.2.0 • Public • Published

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

Scan result

  [
   {
      "ip":"10.0.2.2",
      "mac":"52:54:00:12:35:02"
   },
   {
      "ip":"10.0.2.3",
      "mac":"52:54:00:12:35:03"
   },
   {
      "ip":"10.0.2.4",
      "mac":"52:54:00:12:35:04"
   }
]

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.02latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.02
0.1.21
0.1.10
0.1.00

Package Sidebar

Install

npm i local-network-scanner

Weekly Downloads

3

Version

0.2.0

License

ISC

Unpacked Size

18.4 kB

Total Files

9

Last publish

Collaborators

  • koloo91