spawn()

The node:child_process function that starts a program with a list of arguments and gives you its standard input, output and error as streams.

In more detail

Arguments are passed directly to the program, not through a shell, so they cannot inject extra commands. Streaming the output keeps memory flat even for very large results.

Related terms

Taught in

References