Skip to content

Get current system network interface with TypeScript

Advertisements
  
import * as os from "os"

function getCurrentNetworkInterfaces(): any {
    return os.networkInterfaces()
}
See also  TypeScript code snippet - How to send attachments to api?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.