Learn how Node.js built-in modules like file system, streams, HTTP, and cryptography work through annotated examples.
Set up session-based authentication, file uploads with multer, and request logging in an Express app.
Understand advanced Node.js topics like clustering for multi-core use, child processes, and asymmetric encryption.
This repository is a collection of Node.js learning notes written in Chinese. It documents how various built-in Node.js modules work, with explanations and runnable code examples. The content is organized into two levels: a basics section covering core Node.js APIs, and an advanced section drawing on practical project experience. The basics section works through many of Node.js's standard built-in modules one at a time. Topics include file system operations, data compression with zlib, DNS resolution, HTTP and HTTPS networking, TCP networking with the net module, UDP sockets with dgram, URL parsing, cryptography, binary data handling with Buffer, spawning child processes, clustering for multi-core use, the process object, the event system, streams, path handling, readline for line-by-line input reading, and utility functions. Each topic comes with notes on common API methods and common pitfalls. The advanced section covers more applied topics: handling character encoding issues on the server side, using MD5 and other cryptographic features, integrating common Express middleware like body-parser for parsing request bodies and multer for file uploads, session-based authentication, request logging with Morgan and log4js, cookie signing and parsing with cookie-parser, and asymmetric encryption. There is also material on debugging Node.js applications running on remote servers. The entire guide is written in Chinese and is associated with a Chinese technology publication on WeChat. It is aimed at Chinese-speaking developers learning Node.js who want methodical notes on how the platform's built-in modules work in practice.
← chyingp on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.