1.0.3 • Published 2 years ago
scanning-device v1.0.3
注意:仅在node环境下可用
const getDevice=require("scanning-device")
const device = async () => {
let res = await getDevice()
console.log(res)
}
device()
原理
通过arp表获取ip和mac地址,通过ping -a 获取 设备名称
const getDevice=require("scanning-device")
const device = async () => {
let res = await getDevice()
console.log(res)
}
device()
通过arp表获取ip和mac地址,通过ping -a 获取 设备名称