The child_process module lets Node run other programs/commands (shell commands, scripts, other binaries) as separate OS processes. Useful for invoking system tools, running CPU-heavy work outside the main process, or orchestrating other programs.
The four main methods
exec → run a shell command, buffer all output (simple, small output)
execFile → run a file directly (no shell — safer, faster)
spawn → stream output (for large output / long-running processes)
fork → spawn a new NODE process with an IPC channel (Node-to-Node)
