Skip to content

About

Structured Node.js study notes covering JavaScript modules, core APIs, HTTP services, testing, security, and production practices.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Node.js Study Notes

These are my personal study notes from learning Node.js and using JavaScript outside the browser. I am collecting the core runtime concepts, built-in APIs, and practical patterns that I want to understand and revisit while studying and working.

About these notes

The chapters move from the Node.js runtime and command line into modules, npm, asynchronous work, events, files, streams, HTTP, process behavior, testing, and production practices. Each chapter explains why a concept matters, shows focused JavaScript examples, and ends with review questions. The final appendices collect the chapter code samples and provide answers to all review questions.

The examples use JavaScript and Node.js built-in modules unless a chapter explicitly introduces a package. They target Node.js 22 or newer; use a currently maintained LTS release and check the official documentation for version-specific behavior.

Core topics

  • Explain what Node.js provides and how JavaScript runs in a Node process
  • Use the command line, scripts, and REPL
  • Organize code with CommonJS and ECMAScript modules
  • Read package metadata and manage npm dependencies
  • Understand asynchronous I/O and event-loop behavior
  • Work with events, files, paths, URLs, buffers, and streams
  • Create HTTP services and handle request data
  • Handle errors, process signals, and configuration safely
  • Use child processes and worker threads for separate work
  • Write tests with Node.js built-in tools
  • Apply security, performance, and deployment practices

How I use these notes

I use small examples that can be run locally, then change the input and observe what happens. For server and file-system examples, I keep test data disposable and avoid placing secrets in source files. The review questions help me check that I can describe each idea and choose the right API for a real task.

Chapters

  1. Node.js runtime and JavaScript execution

  2. Install Node.js and use the command line

  3. CommonJS modules and project structure

  4. ECMAScript modules

  5. npm, package.json, and dependencies

  6. Asynchronous JavaScript and the event loop

  7. Events and EventEmitter

  8. Files, paths, and URLs

  9. Buffers and streams

  10. HTTP servers and web requests

  11. Errors, process, and signals

  12. Environment configuration and diagnostics

  13. Child processes and worker threads

  14. Testing with the built-in test runner

  15. Security, performance, and production practices

  16. Build and test a small Node.js service

  17. All code samples

  18. Complete questions and answers

Official references

Links

Support

About

Structured Node.js study notes covering JavaScript modules, core APIs, HTTP services, testing, security, and production practices.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors