js-yaml doesn't support STDIN.

However, use tmp file to output staged version vs as saved in working dir