2.0.0 • Published 4 years ago

arp-a-x-2 v2.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

arp-a-x-2

ARP All Cross (X) Platform Version 2

Modernized version of the arp-a-x package.

Like the original uses native implementation when possible. Returns promises and provides JSDoc types for VSCode and TypeScript integration.

Note that the API has changed and is not backwards compatible!

Install

npm install -g --unsafe-perm arp-a-x-2

Usage

const { arpTable, ipLookupMap, macLookup } = require('arp-a-x-2');

(async () => {
  // Get the entire ARP table
  console.log(await arpTable());

  // ES6 Map from IP addresses to devices (see type signature)
  console.log(await ipLookupMap());

  // Can also find a device based by its MAC address (case-insensitive)
  console.log(await macLookup('xx:xx:xx:xx:xx:xx'));
})();
2.0.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.5.3

4 years ago