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 ...
Get Full Stack JavaScript Development With MEAN 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.