The Node.js Handbook



Download free course The Node.js Handbook, pdf file on 189 pages by Flavio Copes.
Node.js is built on top of the Google Chrome V8 JavaScript engine, and it's mainly used to create web servers - but it's not limited to that.

The Node.js Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. The author find this approach gives a well-rounded overview.

Table of contents

  • Introduction to Node
  • A brief history of Node
  • How to install Node
  • How much JavaScript do you need to know to use Node?
  • Differences between Node and the Browser
  • v8
  • Run Node.js scripts from the command line
  • How to exit from a Node.js program
  • How to read environment variables
  • Node hosting options
  • Use the Node REPL
  • Pass arguments from the command line
  • Output to the command line
  • Accept input from the command line
  • Expose functionality from a Node file using exports
  • npm
  • Where does npm install the packages
  • How to use or execute a package installed using npm
  • The package.json file
  • The package-lock.json file
  • Find the installed version of an npm package
  • How to install an older version of an npm package
  • How to update all the Node dependencies to their latest version
  • Semantic versioning rules
  • Uninstalling npm packages
  • Global or local packages
  • npm dependencies and devDependencies
  • npx
  • The event loop
  • nextTick
  • setImmediate
  • Timers
  • Callbacks
  • Promises
  • async/await
  • The Node Event Emitter
  • HTTP
  • How HTTP Requests work
  • Build an HTTP server
  • Making HTTP requests
  • Axios
  • Websockets
  • HTTPS, secure connections
  • File descriptors
  • File stats
  • File paths
  • Reading files
  • Writing files
  • Working with folders
  • The fs module
  • The path module
  • The os module
  • The events module
  • The http module
  • Streams
  • Working with MySQL
  • Difference between development and production
Pages189
Size3.2 MB
File typePDF
Downloads348
Created2022-02-03
LicenseOpen Publication License
Author(s) Flavio Copes
Cover of The Node.js Handbook

Download