Delimited
Delimited Developer notes

Ncline and Node-based command runners

A reference for maintaining a JavaScript command runner from an older Node project.

Ncline was introduced as a Node-powered way to issue system commands. If you are tracing a script that calls it, start with the project lockfile and find where the runner decides which executable to invoke. Check what it expects on standard input and how it reports exit codes.

Replacing a local command runner

Node’s spawn() API takes an executable and a separate array of arguments. Keep those separate, and keep the shell disabled unless the command actually requires shell syntax. Give a process a time limit where an unattended job must finish.