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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.