Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
6 questionsWhat are stream piping and the .pipe() method in Node.js?
Phone Screen ยท 978 views ยท streams, file-system, pipes
What does the Node.js --watch flag do and how does it replace nodemon?
Backend ยท 954 views ยท nodejs, tooling, dx
How do you replicate __dirname in ES Modules using import.meta.url?
Backend ยท 473 views ยท nodejs, esm, import-meta
Explain the concept of REPL in Node.js
Phone Screen ยท 314 views ยท fundamentals, repl, cli
What is the purpose of `__dirname` and `__filename` in Node.js?
Phone Screen ยท 304 views ยท global variables, paths, modules
What does the Node.js `--env-file` flag do, and does it replace dotenv?
Backend ยท 66 views ยท env-file, dotenv, configuration
Medium
11 questionsHow do you mock modules, timers, and network calls in Node.js tests?
Backend ยท 1.2k views ยท nodejs, testing, mocking
What are 'Event Emitting' patterns and how does error-first callback convention relate to them?
Low-Level Design ยท 1.2k views ยท async, patterns, events
What are npm workspaces and how do you manage a monorepo with them?
Backend ยท 1.1k views ยท nodejs, npm, monorepo
How does `async/await` work and what are its benefits?
DSA ยท 858 views ยท async/await, promises, asynchronous
How do you implement real-time communication with WebSockets (ws) in Node.js?
Backend ยท 734 views ยท nodejs, websockets, realtime
How do you protect a Node.js API against Denial of Service (DoS) and brute-force attacks?
System Design ยท 617 views ยท security, api, middleware
What are Node.js Streams and when would you use them?
Low-Level Design ยท 615 views ยท streams, i/o, performance
How do you run TypeScript directly in Node.js (native type stripping, tsx, ts-node)?
Backend ยท 529 views ยท nodejs, typescript, tooling
Hard
2 questionsWhat 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
What is the 'vm' (Virtual Machine) module and when would you use it?
Low-Level Design ยท 404 views ยท vm, security, v8
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question