Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
9 questionsHow do you enable gzip/Brotli compression for HTTP responses?
Backend ยท 1.2k views ยท nodejs, http, compression
What does the Node.js --watch flag do and how does it replace nodemon?
Backend ยท 954 views ยท nodejs, tooling, dx
What is npx and how does it differ from a global install?
Backend ยท 646 views ยท nodejs, npm, npx
What does NODE_ENV=production actually change and why does it matter?
Backend ยท 619 views ยท nodejs, ops, node-env
What is structuredClone and when is it useful in Node.js?
Backend ยท 549 views ยท nodejs, cloning, structuredclone
How do you replicate __dirname in ES Modules using import.meta.url?
Backend ยท 473 views ยท nodejs, esm, import-meta
What is semantic versioning and how do ^, ~, and exact versions behave?
Backend ยท 280 views ยท nodejs, npm, semver
What is the node:util parseArgs helper for building CLIs?
Backend ยท 223 views ยท nodejs, cli, parseargs
Medium
31 questionsWhat is AbortSignal.timeout and how do you cancel async work cleanly?
Backend ยท 1.2k views ยท nodejs, async, abortcontroller
How do you mock modules, timers, and network calls in Node.js tests?
Backend ยท 1.2k views ยท nodejs, testing, mocking
How do you implement a custom Transform stream?
Backend ยท 1.1k views ยท nodejs, streams, transform
What are npm workspaces and how do you manage a monorepo with them?
Backend ยท 1.1k views ยท nodejs, npm, monorepo
What is a background job queue (BullMQ/Redis) and when do you need one?
System Design ยท 1.1k views ยท nodejs, queue, bullmq
What is the 12-factor app methodology as applied to Node.js services?
System Design ยท 986 views ยท nodejs, architecture, 12-factor
What is Helmet and which HTTP security headers should a Node.js API set?
Backend ยท 947 views ยท nodejs, security, helmet
What is the difference between "type": "module", .mjs, and .cjs?
Backend ยท 931 views ยท nodejs, esm, commonjs
Hard
17 questionsHow do you profile CPU usage with --prof, 0x, or clinic.js flame graphs?
Backend ยท 1.1k views ยท nodejs, performance, profiling
What is a ReDoS (Regular Expression Denial of Service) attack and how do you avoid it?
Backend ยท 1.0k views ยท nodejs, security, redos
What is diagnostics_channel and when would you use it?
Backend ยท 1.0k views ยท nodejs, observability, diagnostics
How do you implement a circuit breaker for unreliable downstream services?
System Design ยท 975 views ยท nodejs, resilience, circuit-breaker
What is SSRF and how do you mitigate it in a Node.js backend?
Backend ยท 830 views ยท nodejs, security, ssrf
What are Single Executable Applications (SEA) in Node.js?
Backend ยท 637 views ยท nodejs, distribution, sea
How does HTTP/2 support work in Node.js and how does it differ from HTTP/1.1?
Backend ยท 487 views ยท nodejs, http2, networking
What are the Web Streams API (ReadableStream/WritableStream) in Node.js and how do they differ from node:stream?
Backend ยท 478 views ยท nodejs, streams, web-streams
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question