Skip to content

Example of how to use 'fetch' to retrieve a file and get it's contents.

Notifications You must be signed in to change notification settings

jpowell96/readFilesWithFetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

readFilesWithFetch

Example of how to use 'fetch' to retrieve a file and get it's contents.

The calls to 'fetch' are made in index.html. index.html shows how to retrieve a .txt file, a .csv file, and a .json file using fetch.

Output is printed to the console. When the project is running from 'npm run start' you can open the inspector to see the output.

Installation

  1. Clone the git repository
  2. To run the server run 'npm run start', or 'node server.js'. It listens on port '3000'
  3. Open your web browser and go to localhost:3000

About

Example of how to use 'fetch' to retrieve a file and get it's contents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published