mkdir-sync-recursive
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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'])

Package Sidebar

Install

npm i mkdir-sync-recursive

Weekly Downloads

27

Version

1.2.1

License

MIT

Unpacked Size

7.76 kB

Total Files

8

Last publish

Collaborators

  • lxf2513