O'Reilly logo

Professional Node.js: Building Javascript Based Scalable Software by Pedro Teixeira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CONTENTS

Introduction

Part I: Introduction and Setup

Chapter 1: Installing Node

Installing Node on Windows

Installing on Mac OS X

Installing Node Using the Source Code

Setting Up and Using Node Package Manager

Summary

Chapter 2: Introducing Node

Introducing the Event-Driven Programming Style

How Node and JavaScript Make Writing Asynchronous Applications Easier

Summary

Part II: Node Core API Basics

Chapter 3: Loading Modules

Understanding How Node Loads Modules

Exporting a Module

Summary

Chapter 4: Using Buffers to Manipulate, Encode, and Decode Binary Data

Creating a Buffer

Getting and Setting Bytes in a Buffer

Slicing a Buffer

Copying a Buffer

Decoding a Buffer

Summary

Chapter 5: Using the Event Emitter Pattern to Simplify Event Binding

Understanding the Standard Callback Pattern

Understanding the Event Emitter Pattern

Understanding Event Types

Using the Event Emitter API

Creating an Event Emitter

Summary

Chapter 6: Scheduling the Execution of Functions Using Timers

Using setTimeout to Defer the Execution of a Function

Using clearTimeout to Cancel the Execution of a Function

Scheduling and Canceling the Repetitive Execution of a Function

Using process.nextTick to Defer the Execution of a Function Until the Next Event Loop Iteration

Blocking the Event Loop

Escaping the Event Loop

Using setTimeout Instead of setInterval to Force Serialization

Summary

Part III: Files, Processes, Streams, and Networking

Chapter 7: Querying, Reading From, and Writing to Files

Manipulating File Paths ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required