Smaller test file plus spell it right in the test.
Fix problems revealed by jshint. Dedupe requires.
Make the flow in writeFile() follow the same pattern as other clients.
Dedupe requires.
Sort requires & fix problems revealed by jshint.
Split out writeFile() and writeFilep() in preparation for revising writeFile().
`path` as variable name -> `target` to avoid potential collisions.
`path` is a fairly popular module...