10Using Additional Node.js Modules

This chapter exposes you to some additional built-in capabilities of Node.js. The os module provides operating system functionality that can be useful when implementing your applications. The util module provides various functionality, such as string formatting. The dns module provides the ability to perform DNS lookups and reverse lookups from a Node.js application.

The following sections describe these modules and how to use them in your Node.js applications. Some of the methods will already be familiar to you because you have seen them in previous chapters.

Using the os Module

The os module provides a useful set of functions that allow you to get information from the operating system (OS). For example, ...

Get Node.js, MongoDB and Angular Web Development, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.