Nodejs 参考资料

2023 年 10 月 25 日

入门

Node.js Development: All You Need to Know

Deep dive into Node.js Architecture - DEV Community

环境变量

Node.js 20.6.0: Say Goodbye to ‘dotenv’ - DEV Community

事件循环

The Node.js Event Loop, Timers, and process.nextTick() | Node.js

Node.js animated: Event Loop - DEV Community

Don’t Block the Event Loop (or the Worker Pool) | Node.js

错误处理

Node.js Error Handling Best Practices: Hands-on Experience Tips - Sematext

异步编程

EventEmitter

The Node.js Event emitter | Node.js

内置模块

File System

Node.js File System Module

Stream

Understanding Streams in Node.js - NodeSource

Buffer

ArrayBuffer,二进制数组

Goodbye, Node.js Buffer — Sindre Sorhus

命令行 CLI

Build a Command Line Application with Node.js | Okta Developer

自动化

nodemon

PM2 - Home

How To Restart Your Node.js Apps Automatically with nodemon | DigitalOcean

调试

Debugging - Getting Started | Node.js

Debugging Node.js, The Right Way

测试

Jest · 🃏 Delightful JavaScript Testing

日志

GitHub - winstonjs/winston: A logger for just about everything.

Node.js Logging Tutorial

Best Practices for Logging in Node.js | AppSignal Blog

多进程

Node.js Worker Threads Vs. Child Processes: Which one should you use?

alvinlal.netlify.app/blog/single-thread-vs-child-process-vs-worker-threads-vs-cluster-in-nodejs

性能优化

This is why your Node.js application is slow - DEV Community

最佳实践

Node.js Best Practices for Beginners and Experts Alike | by Rencybeth | JavaScript in Plain English

GitHub - goldbergyoni/nodebestpractices: :white_check_mark: The Node.js best practices list (July 2023)

Web 框架

Express - Node.js web application framework

NestJS - A progressive Node.js framework

数据库

MySQL

MySQL

Redis

Redis

MongoDB

MongoDB:应用程序数据平台 | MongoDB

How to Connect a Node.js Project with MongoDB: A Comprehensive Guide

ORMs

Prisma | Next-generation ORM for Node.js & TypeScript

Mongoose ODM v8.0.0

BUG

升级到 20 lts

ts-node --esm不能用了

ERR_UNKNOWN_FILE_EXTENSION on Node v20.0.0 · Issue #1997 · TypeStrong/ts-node · GitHub

Scalability & Distributed System