Writes a file from URL to filesystem using different request libraries.
Requirement: Image content type must be used to determine the correct extension.
npm install
to install dependenciesnpm run build
to build Typescript source filesnpm start
to start the script- Result should be new files
gotfile.jpeg
andrequestfile.jpeg
gotfile.jpeg
downloaded with got
contains only one chunk of the image.