function createDirectoryPath(path) {
    const directories = path.split('/');
    directories.reduce((acc, current) => {
        let dir = acc + '/' + current
        if (!fs.existsSync(dir)) {
          fs.mkdirSync(dir);
        }
        return dir
    }, '.')
}
This traverses all json files located on the examples folder, then iterates
over each file and opens a puppeteer page to a screenshot of all frames
combined in a single page.