Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@juliendu11/network-devices-scanner-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@juliendu11/network-devices-scanner-api

Finds devices connected to the same networks as you. Module made in Typescript

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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(); // => [{Name, Address}]

const myWifiConnection = connections[0] // Select the type of connection on which you want to launch a scan, for wifi the name starts with w (wlan, wlp). Here is the first element of the table for me

console.log(await instance.findDevices(myWifiConnection))

//Output example:
// [
//   DeviceInfo { Address: '192.168.1.1', Name: 'box' },
//   DeviceInfo { Address: '192.168.1.23', Name: 'LAPTOP-4NVU9SON' },
//   DeviceInfo {
//     Address: '192.168.1.30',
//     Name: 'android-a4f889416fdaf0b2'
//   },
//   DeviceInfo { Address: '192.168.1.41', Name: 'DC-PC' },
//   DeviceInfo {
//     Address: '192.168.1.43',
//     Name: 'HUAWEI_P40_lite-f27a82d5f'
//   },
//   DeviceInfo { Address: '192.168.1.44', Name: 'RedmiNote8-xoemi' },
//   DeviceInfo { Address: '192.168.1.54', Name: 'RedmiNote8T-Redmi' },
//   DeviceInfo { Address: '192.168.1.90', Name: 'RedmiNote7-Redmi' },
//   DeviceInfo { Address: '192.168.1.99', Name: 'JulienArchLinux' }
// ]

The host name and address of devices connected to the same network as you are displayed

Keywords

FAQs

Package last updated on 04 Sep 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc