Skip to content

typeof os.networkInterfaces family is a number (v18.0.0) #42861

Description

@elecV2

Affected URL(s)

https://nodejs.org/dist/latest-v18.x/docs/api/os.html#osnetworkinterfaces

Description of the problem

according to this commit: 3a26db9 , the type of os.networkInterfaces family is an integer now, but the api doc still show as string.

Another problem about this change, some functions of package require('ip') may not working. error message: details.family.toLowerCase is not a function

detail code: https://github.com/indutny/node-ip/blob/master/lib/ip.js#L385

(Just bring it up incase someone get the same error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.osIssues and PRs related to the os subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions