Chapter 5Core Modules
In Chapter 3, you learned about Node’s
module system and the require() function. Then, Chapter 4 taught you how to write code in the Node
way. Along the way, you’ve also seen a few examples that used the
http and fs core modules. This chapter
brings all the previously discussed material together, explaining how to use
some of Node’s core modules in detail. Before we start, it’s worth pointing
out that we’ll only scratch the surface of the Node core—it’s far too large to cover in a single chapter;
however, after completing this chapter, you should have adequate knowledge
to understand the Node
documentation.
Command Line Arguments
Reading arguments from the command line is extremely simple in Node. All command line arguments ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access