The util
module is kind of a catch-all module. It provides utility functions for formatting strings, converting objects to strings, checking object types, and performing synchronous writes to output streams, as well as some object inheritance enhancements.
The following sections cover most of the functionality in the util
module. They also explain ways to use the util
module in your Node.js applications.