This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code interview | |
Use the [Star Wars API](http://swapi.co) to generate a list of the films that a particular character appears in. | |
### Objectives | |
- Allow users to choose a character from the provided list of characters | |
- Upon selection of a character, the UI should update to display information about **each** of the films that character appears in (title, release date). | |
- Handle HTTP errors | |
- Make it pretty! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
/** | |
* Traversing a directory tree and get a list of the files inside it. | |
* | |
* @param {string} dir | |
* Directory path | |
* | |
* @return {string[]} |