@alpha-pei/network-interface
v0.1.1
Published
A cross-platform Node.js native addon to get network interface information using N-API and Rust.
Maintainers
Readme
@yat/network-interface
network-interfaceis a node module witch impled by rust. It can list your deivce's network interfaces.
Usage
import { interfaces } from '@yat/network-interface'
interfaces(IFF_ETH | IFF_RUNING)Install this test package
yarn add @yat/network-interfaceConstants
//Filter Running interfaces
const IFF_ETH: number
// Filter Ethernet interfaces.
const IFF_LOOPBACK: number
// Filter Wireless interfaces sometimes it sames as Etherent interfaces.
const IFF_RUNNING: number
// Filter out VPN interfaces. Note! This is only a hypothesis.
const IFF_TUNN: number
///Filter out TUN interfaces. Note! This is only a hypothesis.
const IFF_VPN: number
///Filter out LOOPBACK interfaces.
const IFF_WIRELESS: number