Parse and write environment files with Node.js