Skip to main content
100%

Loading and parsing csv data

✓ Published1🌍 Public
HHamza Abdirashid
Last edited Jul 2, 2021
Created on Jul 2, 2021
Forked from HTML Starter

This example demonstrates fetching and logging the raw text of a CSV file containing CSS named colors. The code uses the `fetch` API to request the remote CSV from a GitHub gist, then chains a `.then()` call to extract the response as text with `response.text()`. It illustrates both the current async/await pattern and the older promise-based approach in commented code, with the result written to the browser console.

AI-generated description

This is going to demonstrate how to parse csv data with async/await and promises

MIT Licensed

Similar vizzes