1.3.1 • Published 6 months ago

@lxf2513/mkdir-recursive v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

mkdir-recursive

Recursively creates a directory. Returns undefined or the first directory path created.

Installation

npm @lxf2513/mkdir-recursive

Usage

// sync
import { mkdirSyncRecursive } from '@lxf2513/mkdir-recursive'

const path = mkdirSyncRecursive('/path/source')

const paths = mkdirSyncRecursive(['test', 'build/scripts', 'test/html'])

// async
import { mkdirAsyncRecursive } from '@lxf2513/mkdir-recursive'

const path = await mkdirAsyncRecursive('/path/source')
1.3.1

6 months ago

1.3.0

8 months ago

1.2.1

10 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.0.1

12 months ago

1.0.0

12 months ago