#nodejs
Posts tagged with “nodejs”.
6 posts
Callbacks Explained: The Foundation of Async JavaScript
A callback is a function passed to another function to be called later. Learn how they work, callback hell, and how to avoid its pitfalls.
npm vs Yarn vs pnpm: Which Package Manager to Use
The three Node package managers differ in speed, disk usage and strictness. Learn the trade-offs and how to choose for a project.
package.json Explained: Every Field That Matters
The manifest of a Node project. Learn the fields that affect resolution, the scripts, the exports map, and the version ranges.
Creating CLI Tools in Node.js
Build and publish Node.js command-line tools: shebang, package.json bin, commander.js arguments, colored output, prompts, testing, and npm publishing.
Building a REST API with Rate Limiting
Add rate limiting to a Node.js REST API with Express: per-route limits, Redis stores, proxy headers, 429 responses, and real commands you can run.
Case Study: Building a URL Shortener
First-person case study of building a URL shortener: stack choices, code generation, database schema, open redirect bug, rate limiting, and the mistakes that mattered.