Chapter 2Wrangling the File System
As a programmer, chances are youâve had to access a filesystem at some point: reading, writing, renaming, and deleting files. Weâll start our Node.js journey in this familiar area, creating useful, asynchronous file utilities. Along the way weâll explore the following aspects of Node.js development:
- Node.js Core
-
On the architecture front, youâll see how the event loop shapes a programâs flow. Weâll use Buffers for transporting data between Node.jsâs JavaScript engine and its native core, and weâll use Node.jsâs module system to bring in core libraries.
- Patterns
-
Inside our programs, weâll use common Node.js patterns like callbacks for handling asynchronous events. Weâll harness Node.jsâs ...
Get Node.js 8 the Right Way 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.