Minor feature polish.
const cwd = tempdir()
const delimiter = '\0'
const p1 = $({
cwd
})`touch foo bar baz; find ./ -type f -print0 -maxdepth 1`
(await p1.lines(delimiter)).sort() // ['./bar', './baz', './foo']
// or via options
const lines = []
const p2 = $({
delimiter,
cwd,
})`find ./ -type f -print0 -maxdepth 1`
for await (const line of p2) {
lines.push(line)
}
lines.sort() // ['./bar', './baz', './foo']