LookupAddress.family - Node documentation
property LookupAddress.family

Usage in Deno

import { type LookupAddress } from "node:dns";

4 or 6, denoting the family of address, or 0 if the address is not an IPv4 or IPv6 address. 0 is a likely indicator of a bug in the name resolution service used by the operating system.

Type

number