Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
device-discovery
Advanced tools
Discover devices on your local network.
npm install device-discovery
const discovery = require('device-discovery')
({ type: 'ICMP', iface: 'WiFi' })
discovery.on('device', console.log)
// => 192.168.0.20
// 192.168.0.31
// ...
discovery.on('done', () =>
console.log('Done!'))
require('device-discovery')(options)
<Object>
<String>
: default = ICMP
; the protocol used for device discovery, one of ICMP
or TCP
<String>
: default = WiFi
; the interface on which to scan for devices<Number>
: default = 2
; the start of the range of hosts to be scanned<Number>
: default = 254
; the end of the range of hosts to be scanned<Number>
: default = 1
; the port to be scanned (TCP
only)<Number>
: default = 3000
; the timeout after which the scan of a host will be considered a miss<Number>
: default = 0
; the number of retries for pinging a host (ICMP
only)<Boolean>
: default = true
; whether to exclude the device the discovery is run on<Error>
if the interface cannot be found or the type is unknown<EventEmitter>
with the following events:
<String>
: the IPv4 address of the device found()
: if the discovery is doneWTFPL – Do What the F*ck You Want to Public License.
Made with :heart: by @MarkTiedemann.
FAQs
Discover devices on your local network.
The npm package device-discovery receives a total of 0 weekly downloads. As such, device-discovery popularity was classified as not popular.
We found that device-discovery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.