Synchronously and recursively creates a directory. Returns undefined or the first directory path created.
npm install mkdir-sync-recursive
import mkdirSyncRecursive from 'mkdir-sync-recursive'
// Returns undefined, or the first directory path created.
mkdirSyncRecursive('/path/source')
// Returns undefined, or the first directory path created of each path.
mkdirSyncRecursive(['test', 'build/scripts', 'test/html'])