Modern Node in 2026 · mid
What is built into Node now
Modern Node ships tools that used to need packages: fetch and WebSocket clients, a test runner, watch mode, .env loading, node --run, a SQLite module and a permission model, so many services need fewer dependencies.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- fetch is global and stable since Node 21 (built on undici; see process.versions.undici). A WebSocket client is global since Node 22 (stable in 22.4). A WebSocket server still needs a library (ws, Socket.IO).
- node:test (stable since 20): test/describe/it, hooks, mocking (including timers), node --test to run files.
- node --watch restarts on file changes (stable since 22.0 and 20.13), so nodemon is often unnecessary.
- --env-file=.env loads environment variables (no longer experimental since 24.10 and 22.21); --env-file-if-exists for optional files.
- node --run <script> runs package.json scripts faster than npm run (no pre/post hooks).
- node:sqlite: built-in synchronous SQLite (DatabaseSync); unflagged in 22.13, a release candidate since 25.7.
- Permission model: --permission with --allow-fs-read, --allow-fs-write, --allow-net, --allow-child-process and more; stable since 23.5 and 22.13. The docs call it a seat belt for trusted code, not a sandbox for malicious code.
The red pen
Common traps: mistake → fix
Mistake: You need axios or node-fetch for HTTP in Node
Fix: fetch is built in and stable; axios is a preference, not a need.
Mistake: The permission model makes running untrusted code safe
Fix: the docs say it does not protect against malicious code.
Mistake: --env-file replaces a secrets manager
Fix: it is a local and dev convenience; production secrets come from the platform.
Easy to hard
Questions interviewers ask, easy to hard
- Which recent Node features do you use?
- Do you still need nodemon, dotenv and Jest for a small service? What do you lose without them?
- What is the Node permission model? Would you use it to run user plugins?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.