Writes config to temp file then renames to dest
Writes config to temp file then renames to dest

This protects against corrupting the configuration file if the
application crashes before the stream finishes writing to the file

Especially important for large configuration files

LinusU/node-application-config