SVG Command line tool for exporting output

You should probably use object (`{}`) here and assign property based on attribute name, and build resulting output using for..in