Skip to content

Instantly share code, notes, and snippets.

# 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!
@mariuslazar93
mariuslazar93 / directory-list.js
Last active March 15, 2018 14:59
Get the list of files inside a directory tree
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[]}