• Tutorials Logic, IN
  • +91 8092939553
  • info@tutorialslogic.com

NodeJS Util Modules

Util Modules

The Util module provides access to various useful utility functions in NodeJS. These modules are very common and frequently used while developing any NodeJS based application. To include the Util module, use the require() method:-

										    
											var util = require('util');
											
										

The NodeJS util module is one of the very important modules, which provides various methods, which includes the following:-

Util Module MethodsDescription
debuglog()It is used to create a function that conditionally writes debug messages to stderr.
deprecate()It wraps function in such a way that it is marked as deprecated.
format()It formats the specified string, using the specified arguments.
inherits()It inherits methods from one function into another.
inspect()It inspects the specified object and returns the object as a string.