Skip to content

Conversation

@domenester
Copy link

About You

Name: Diogo Domene

Email: diogodomene@gmail.com

Whatsapp: 5511997953111

Linkedin: https://www.linkedin.com/in/diogodomene

About your solution

I created a class with methods to deal with the given requirments. To save the images I made the use of stream and saved all the images, but fist, handling the folders creation, and validating the images url to check if the URL and images are valid, so the function returns a object with two keys, the "results" with local paths of the images saved, and the "error" with the message about what went wrong with the images save failure.

How to run your code?

After installing the dependencies with "npm install", you can run "npm test" to see the tests run in the terminal. And after, run "npm start" to see the function run and logging the local path of the images created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant