mkdir-sync-recursive
v1.1.3
Published
Synchronously and recursively creates a directory. Returns undefined or the first directory path created.
Downloads
383
Maintainers
Readme
mkdir-sync-recursive
Synchronously and recursively creates a directory. Returns undefined or the first directory path created.
Installation
npm install mkdir-sync-recursive
Usage
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'])