UNPKG

nodearp

Version:

nodeJS Address Resolution Display and Control Getter Methods

35 lines (29 loc) 686 B
# arp ### Node Address Resolution Display and Control A node implementation of arp utility getter methods. Examples in tests/ ``` var arp = require('./arp') /** * Get all ARP entries * @return {array} entries **/ arp.entries(function(entries){ console.log(require('util').inspect(entries, { depth: null })); }) /** * Get all ARP entries on interface * @param {string} interface * @return {array} **/ arp.onInterface('en0', function(entries){ console.log(require('util').inspect(entries, { depth: null })); }) /** * Get own ARP entry * @return {object} **/ arp.self(function(entry){ console.log(require('util').inspect(entry, { depth: null })); }) ```