List of Listings
Chapter 1. Welcome to Node.js
Listing 1.1. Using core modules and streams
Chapter 2. Node programming fundamentals
Listing 2.1. Defining a Node module (currency.js)
Listing 2.2. Requiring a module (test_currency.js)
Listing 2.3. Module wonât work as expected
Listing 2.4. A list of post titles
Listing 2.5. A basic HTML template to render the blog titles
Listing 2.6. Using callbacks in a simple application
Listing 2.7. Reducing nesting by creating intermediary functions
Listing 2.8. Reducing nesting by returning early
Listing 2.9. Using the on method to respond to events
Listing 2.10. Using the once method to respond to a single ...
Get Node.js in Action, Second 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.