UNPKG
nodearp
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
nodeJS Address Resolution Display and Control Getter Methods
github.com/DGZN/nodearp
DGZN/nodearp
nodearp
/
tests
/
interface.js
11 lines
(9 loc)
•
232 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
arp =
require
(
'../index'
)
/** * Get all ARP entries on interface *
@param
{
string
}
interface
*
@return
{
array
} **/
arp.
onInterface
(
'en0'
,
function
(
entries
){
console
.
log
(
require
(
'util'
).
inspect
(entries, {
depth
:
null
})); })