There is a breaking change in node 18 family property is now `number` not a string https://github.com/nodejs/node/issues/42787 I'd throw up a PR but I'm not sure how to treat number. Weather it is ok just to `.toString()` it or `"IPv" + address.family`