NetworkDevicesScannerAPI-JS
Finds devices connected to the same networks as you. Module made in Typescript
Install
npm i @juliendu11/network-devices-scanner-api
How to use ?
Create a instance of NetworkDevicesScannerAPI
⚠️ Searching for a device may take a while
const {NetworkDevicesScannerAPI} =require('@juliendu11/network-devices-scanner-api')
const instance = new NetworkDevicesScannerAPI()
const connections = instance.findConnections();
const myWifiConnection = connections[0]
console.log(await instance.findDevices(myWifiConnection))
The host name and address of devices connected to the same network as you are displayed