Tagged articles
14 articles
Page 1 of 1
Node.js Tech Stack
Node.js Tech Stack
Jan 12, 2026 · Backend Development

Node.js require(esm) Goes Stable: CommonJS and ESM Finally Reconcile

Node.js now marks require(esm) as stable in LTS releases, allowing CommonJS files to require synchronous ESM modules without extra flags, simplifying package.json configuration, eliminating the need for dual packages, and resolving the long‑standing CJS‑ESM split for the vast majority of projects.

CommonJSESMLTS
0 likes · 8 min read
Node.js require(esm) Goes Stable: CommonJS and ESM Finally Reconcile
ByteFE
ByteFE
Apr 9, 2024 · Fundamentals

Understanding and Managing Dependencies in Node.js Projects

This article explores the hidden complexities of dependency management in modern Node.js development, covering the risks of unstable package structures, versioning pitfalls, various dependency types, ghost and circular dependencies, and provides practical strategies and best‑practice recommendations to keep dependency graphs stable, secure, and maintainable.

Node.jsSoftware Engineeringnpm
0 likes · 28 min read
Understanding and Managing Dependencies in Node.js Projects
DaTaobao Tech
DaTaobao Tech
Sep 13, 2022 · Backend Development

Developing a Node.js CLI Scaffold: Tools, Package.json and Demo

This guide walks you through building a custom Node.js CLI scaffold using commander, chalk, inquirer, ora, and download‑git‑repo, explains essential package.json fields like bin and engines, and provides a complete demo that prompts users, downloads templates, and initializes projects ready for global installation.

CLICommanderNode.js
0 likes · 17 min read
Developing a Node.js CLI Scaffold: Tools, Package.json and Demo
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 24, 2022 · Backend Development

How to Properly Create a Qualified npm Package with TypeScript: A Step‑by‑Step Guide

This article walks readers through the complete process of building a well‑structured npm package using TypeScript, covering project initialization, package.json configuration, essential tooling such as husky, lint‑staged, eslint, prettier, unit testing with Jest, and best practices for documentation and publishing.

ESLintJestLibrary
0 likes · 15 min read
How to Properly Create a Qualified npm Package with TypeScript: A Step‑by‑Step Guide
ByteDance ADFE Team
ByteDance ADFE Team
Jan 12, 2022 · Frontend Development

Designing and Publishing Module Packages in a Monorepo: Best Practices for Shared Config, UI Libraries, and Native Modules

This article explains how to design, build, and publish reusable module packages—including shared configuration libraries, UI component libraries, and native language modules—within a monorepo, covering package.json configuration, multiple entry formats (ESM, CJS, UMD), tooling choices, and publishing workflows for both frontend and Node.js projects.

MonorepoNode.jsReact
0 likes · 19 min read
Designing and Publishing Module Packages in a Monorepo: Best Practices for Shared Config, UI Libraries, and Native Modules
ByteFE
ByteFE
Aug 16, 2021 · Backend Development

Understanding yarn.lock: Why It Changes and How to Manage It

This article explains the purpose and structure of yarn.lock, why it may show unexpected diffs after dependency updates, and provides practical strategies—including using resolutions, frozen lockfiles, and preventive workflows—to keep package.json and yarn.lock in sync and avoid build issues.

YARNdependency-managementlockfile
0 likes · 12 min read
Understanding yarn.lock: Why It Changes and How to Manage It
WeDoctor Frontend Technology
WeDoctor Frontend Technology
May 19, 2020 · Backend Development

What Really Happened with the is-promise NPM Incident? A Deep Dive

The article investigates the April 25 NPM outage caused by the is-promise package, explains the buggy code and the problematic "type" and "exports" fields in package.json, reviews the rapid fix timeline, and offers practical lessons for developers to avoid similar dependency mishaps.

Exportsdependency managementis-promise
0 likes · 15 min read
What Really Happened with the is-promise NPM Incident? A Deep Dive
Node Underground
Node Underground
Aug 11, 2019 · Backend Development

Mastering Node.js ES Modules: From CommonJS to Native Imports

This article explains how Node.js 12 introduced native ECMAScript Modules, compares them with CommonJS, shows how to enable the feature, configure package.json, and adapt code using import/export, import.meta, and other module‑specific changes.

CommonJSES ModulesModules
0 likes · 10 min read
Mastering Node.js ES Modules: From CommonJS to Native Imports
System Architect Go
System Architect Go
Mar 6, 2017 · Backend Development

Understanding npm Scripts and Custom Commands in Node.js Projects

This article explains the role of the scripts section in a Node.js project's package.json, clarifies why commands like npm start work without the run keyword, and shows how to correctly execute custom scripts using npm run, helping developers avoid common pitfalls.

Node.jscommand-linenpm
0 likes · 3 min read
Understanding npm Scripts and Custom Commands in Node.js Projects
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 3, 2016 · Backend Development

Master npm Dependency Versioning: Caret (^), Tilde (~) and Range Syntax Explained

This article explains how npm interprets dependency version specifiers such as caret (^), tilde (~), and range operators, illustrates their effects with lodash examples, covers semantic versioning rules, special cases like 0.x.x versions, and provides test cases to help developers choose the appropriate version constraints.

caretdependency managementlodash
0 likes · 10 min read
Master npm Dependency Versioning: Caret (^), Tilde (~) and Range Syntax Explained