JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3577
  • Score
    100M100P100Q112711F
  • License MIT

Find devices connected to the current local network.

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

js-standard-style

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-devices

Example

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 test to run tests.

Please feel free to create a PR!