Ensuring Consistent Execution Path
In this example, a script might refer to a file, index.tex, which is referenced by Pandoc to convert a file located within a folder:
/contents
index.tex
spawn('pandoc', [
'/the/full/path/to/contents/index.tex',
'-o',
'/the/full/path/to/output/index.html',
'-s'
]);