Package Exports
- local-devices
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (local-devices) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Local Devices
Find all devices connected to the local network using arp -a.
This module also pings all possible ip's in the local network to build the arp table.
Installation
Npm
npm install local-devicesExample
import find from 'local-devices'
// Find all local network devices
find().then(devices => {
devices /*
[
{ name: '?', ip: '192.168.0.10', mac: '...' },
{ name: '...', ip: '192.168.0.17', mac: '...' },
{ name: '...', ip: '192.168.0.21', mac: '...' },
{ name: '...', ip: '192.168.0.22', mac: '...' }
]
*/
})Contributions
- Use
npm testto run tests.
Please feel free to create a PR!