Node Underground
Author

Node Underground

No language is immortal—Node.js isn’t either—but thoughtful reflection is priceless. This underground community for Node.js enthusiasts was started by Taobao’s Front‑End Team (FED) to share our original insights and viewpoints from working with Node.js. Follow us. BTW, we’re hiring.

247
Articles
0
Likes
24
Views
0
Comments
Recent Articles

Latest from Node Underground

100 recent articles max
Node Underground
Node Underground
Aug 15, 2021 · Backend Development

Mastering Node.js Logging: Active vs Passive Techniques and Best Practices

This article explores effective logging strategies in Node.js, comparing active console output with passive library-based recording, introducing popular modules such as debug and util.debuglog, detailing log format components, and demonstrating context-aware logging implementations to improve debugging and operational monitoring.

Node.jscontext loggingdebug
0 likes · 10 min read
Mastering Node.js Logging: Active vs Passive Techniques and Best Practices
Node Underground
Node Underground
Aug 1, 2021 · Backend Development

How to Efficiently Handle CPU‑Intensive Tasks in Node.js

This article explains what CPU‑bound tasks are, why Node.js struggles with them, and presents three practical solutions—splitting work with setImmediate, offloading to child processes, and leveraging worker_threads—illustrated with a Fibonacci calculation example and complete code snippets.

CPU-intensiveNode.jschild_process
0 likes · 5 min read
How to Efficiently Handle CPU‑Intensive Tasks in Node.js
Node Underground
Node Underground
Jul 25, 2021 · Backend Development

Node.js Debugging Essentials: Env Vars, Exit Codes, Deprecations & Sync I/O

Learn how to effectively debug Node.js applications by leveraging environment variables like DEBUG and NODE_DEBUG, interpreting process exit codes, handling deprecated APIs, detecting synchronous I/O, and managing unhandled promise rejections, with practical code examples and command-line flags to streamline troubleshooting.

DebuggingNode.jsProcess Exit Codes
0 likes · 12 min read
Node.js Debugging Essentials: Env Vars, Exit Codes, Deprecations & Sync I/O
Node Underground
Node Underground
Jul 13, 2021 · Backend Development

Why Do export and import Behave Differently in Node.js ESM?

This article explores how various export syntaxes in ES modules affect the binding behavior of imported values in Node.js, demonstrating differences between named exports, default exports, destructuring, and circular dependencies with clear code examples.

ESMExportNode.js
0 likes · 7 min read
Why Do export and import Behave Differently in Node.js ESM?
Node Underground
Node Underground
May 14, 2021 · Frontend Development

What Is a JavaScript Activation Object and Why It Still Matters

This article explains the historic concept of Activation (or Variable) Objects in ECMAScript 1/3, how they were replaced by Lexical Environments in ES5+, and how the broader notion still helps understand closures and stack frames in modern JavaScript.

Activation ObjectECMAScriptLexical Environment
0 likes · 9 min read
What Is a JavaScript Activation Object and Why It Still Matters
Node Underground
Node Underground
Mar 28, 2021 · Backend Development

Master Node.js Debugging: From Built‑in Inspector to VSCode Integration

This guide explains how to efficiently debug Node.js applications using built‑in inspector flags, breakpoints, Chrome's inspect UI, and VSCode integration, covering setup, command‑line options, configuration files, and advanced features like AutoAttach for a smoother development workflow.

InspectNode.jsVSCode
0 likes · 10 min read
Master Node.js Debugging: From Built‑in Inspector to VSCode Integration