Hype Data Parser

If you wish to utilize your CSV table as a basic key-value store

Sample data for your CSV, adjust with your key values

Key1, Value1
Key2, Value2
Key3, Value3

This parser setup should work

fetch("ADJUST-PATH-HERE.csv")
.then(function(response){return response.text()})
.then(function(text){
	console.log('Raw CSV', text);

	// Parse the CSV data into an array
	var parsedArray = HypeDataParser.csvToArray(text, {head: false});
	
	// Initialize an empty object to hold the key-value pairs
	var keyValueObject = {};
	
	// Iterate over each row in the array
	parsedArray.forEach(function(row) {
		// Use the first column as key and the second column as value
		var key = row[0];
		var value = row[1];
		keyValueObject[key] = value;
	});

	console.log('Key value store', keyValueObject);
	
	HypeDataMagic.setData(keyValueObject)
});