code: function csvLine(fields) {
  	var line = "";
  	fields.forEach(field => { 
  		if (line.length > 0)
  			line += ";"
  		line += typeof field === "number" ? field : '"' + field.toString().replace(/"/g, '""') + '"';
  	});
  	line += "\n";
  	return line;
  }
docs: TODO Use a CSV lib?