write sync to stdout
formatting
test if fs.writeSync is defined and on windows
2.13.1