running-at
Version:
Get local and network ip address
19 lines (17 loc) • 439 B
TypeScript
export interface Options {
port?: number | string,
protocol?: string,
host?: string,
pathname?: string,
family?: string,
interface?: string,
getNetwork?: boolean,
indentation?: boolean
}
export interface Result {
ip?: string,
local: string,
network?: string
}
export default function(option?: Options | number | string): Result;
export function print(option?: Options | number | string): void;