nmap-js
Gets a list of devices on the network and their MAC addressess Depending upon the address ranges the call can take a long time, so be patient.
prerequisites
nmap must be installed and the installed location must be added to the system PATH variable.
install
To install npm install nmap-js
example
var nmap = ; var addresses = '192.168.1.0/24' //nmap target specification https://nmap.org/book/man-target-specification.html; nmap;