In this project you'll build a command-line HTTP
client that will request the avatars for all contributers to a given project on GitHub, and download them to disk.
In doing so, you will learn about how to break down larger problems into smaller steps and work incrementally towards your solution. You'll also learn more about topics such as HTTP
, APIs
, JSON
, the file system
and how you can work with all of those things through JavaScript and Node
.
Given a GitHub repository name and owner, download all the contributors' profile images and save them to a subdirectory, avatars/
.
Your program should be executed from the command line in the following manner,
node download_avatars.js jquery jquery
Any valid repo-owner + repo combination can be used, such as this:
node download_avatars.js nodejs node