My Account Log in

2 options

Node cookbook : discover solutions, techniques, and best practices for server-side web development with Node. js 14 / Bethany Griggs.

EBSCOhost Academic eBook Collection (North America) Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Griggs, Bethany, author.
Language:
English
Subjects (All):
Web services.
Programming & scripting languages: general.
Distributed systems.
Physical Description:
1 online resource (512 pages) : illustrations
Edition:
Fourth edition.
Place of Publication:
Birmingham, England : Packt Publishing, Limited, [2020]
Summary:
The fourth edition of Node Cookbook covers the latest features and libraries of Node.js 14. With this recipe-based guide, you'll learn how to handle files, build simple web applications, and build your own modules using Node.js. You'll also be able to diagnose problems in your apps, handle security concerns, and deploy your apps to the cloud.
Contents:
Cover
Title Page
Copyright and Credits
About Packt
Contributors
Table of Contents
Preface
Chapter 1: Introducing Node.js 14
Technical requirements
Installing Node.js 14 with nvm
Getting ready
How to do it...
How it works...
There's more...
See also
Accessing the Node.js API documentation
Adopting new JavaScript syntax in Node.js 14
Chapter 2: Handling I/O
Handling standard I/O
How to do it
How it works
Managing files with fs module
There's more
Inspecting file metadata
Watching for file updates
Creating TCP server and client communication
Chapter 3: Streams, Streams, Streams
Creating streams in Node.js
Interacting with paused streams
Piping streams
Transforming data with transform streams
Building stream pipelines
Chapter 4: Using Web Protocols
Using http module to make HTTP requests
See also.
Building an HTTP server to accept GET requests
Handling HTTP POST requests
Using formidable to handle file uploads
Using ws to create a WebSocket server
Sending an automated email using your own SMTP server
Chapter 5: Developing Node.js modules
Consuming Node.js modules
Setting up your own module
Implementing your module
Preparing and publishing your module to npm
Using ECMAScript modules
Chapter 6: Exploring Node.js web Frameworks
Building web applications with Express.js
Building web applications with Koa.js
See also...
Building web applications with Fastify
Building web applications with Hapi
Chapter 7: Working with Databases
Connecting and persisting to a MySQL database.
Getting ready
Connecting and persisting to a PostgreSQL database
Connecting and persisting to MongoDB
Persisting data with Redis
Persisting data with LevelDB
Chapter 8: Testing with Node.js
Testing with tape
Testing with Mocha
Testing with Jest
Stubbing HTTP requests
Using Puppeteer
Configuring Continuous Integration tests
Chapter 9: Securing Node.js Applications
Detecting known dependency vulnerabilities
Authentication with Express.js
Setting HTTP headers with Helmet
Protecting against HTTP parameter pollution attacks
Preventing JSON pollution
Preventing cross-site scripting attacks.
Guarding against cross-site request forgery attacks
Chapter 10: Performance Optimization
Benchmarking HTTP requests
Interpreting flame graphs
Detecting memory leaks
Optimizing synchronous functions
Optimizing asynchronous functions
Working with worker threads
Chapter 11: Deploying Node.js Microservices
Generating a microservice with LoopBack
Consuming a microservice
Handling errors
Building a Docker container
Publishing a Docker image
Deploying to Kubernetes
Chapter 12: Debugging Node.js
Diagnosing issues with Chrome DevTools
Logging with Node.js
Enabling debug logs
Enabling Node.js core debug logs
Increasing stack trace size
Creating diagnostic reports
Other Books You May Enjoy
Index.
Notes:
Includes index.
Description based on print version record.
Description based on publisher supplied metadata and other sources.
OCLC:
1225543827

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Library Catalog Using Articles+ Library Account