Import CSV/JSON from javascript to Google Sheets

Job ID: 35168415

Budget: $30 – $250 USD

My javascript code can output a json / CSV string. I need a script that uploads it to google sheets, if it doesn't exist. For example, imagine a model:

sheetName: SheetName
data:
field1, value1
field2, value2
field3, value3

Script will create a new sheet named SheetName and import the data into it. If the sheet with that name already exists, the data won't be uploaded (it will not override).

The google document will be a specific one. I'm not sure how do you link to a one, whether it's by ID or something like that.

You can use any framework, script, whatever. My javascript produces a string. If you decide to use any other language, then make sure to include a way to export a string from javascript.