scripts/excel-to-jekyll.js
// Create folders from a Unix path (eg, "foo/bar").
Create folders from a Unix path .
Create folders from a Unix path .
function createFolder(folderPath) {
    const parts = folderPath.split('/')
    let folder = '.'
    for (const part of parts) {
        folder = folder + path.sep + part
        if (!fs.existsSync(folder)){
            fs.mkdirSync(folder);
        }
    }
}
function createFolder ( folderPath ) { const parts = folderPath . split ( '/' ) let folder = '.' for ( const part of parts ) { folder = folder + path . sep + part if ( ! fs . existsSync ( folder ) ) { fs . mkdirSync ( folder ) ; } } }
Create folders from a Unix path (eg, "foo/bar").
Create folders from a Unix path ( eg " foo / bar " ) .