Node.js built-in classes inheritance structure

Here is the scheme of inheritance of the built-in Node.js classes. All of them can be found on the pages of https://nodejs.org/api/. Node.js version 17.8.0 was used.

Legend:

  • elements are named in format [moduleName].[className] (e.g. const { Readable } = require('stream') becomes stream.Readable)
  • elements are colored based on the [moduleName]
  • elements that are accessible globally have [moduleName] = global
  • elements that users can't import manually have [moduleName] = hidden