1.3.2 • Published 6 months ago

@lxf2513/readdir-sync-recursive v1.3.2

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

readdir-sync-recursive

Reads the contents of the directory synchronously and recursively.

Like fs.readdirSync('/path/source', { recursive: true }).Compatible with lower versions of nodejs.

Return [] if the path not exist or not a directory

Installation

npm install @lxf2513/readdir-sync-recursive

Usage

import readdirSyncRecursive from '@lxf2513/readdir-sync-recursive'

readdirSyncRecursive('/path/source')

readdirSyncRecursive('/path/source', 'relativePath')

readdirSyncRecursive('/path/source', 'absolutePath')
1.3.2

6 months ago

1.3.1

8 months ago

1.3.0

10 months ago

1.2.2

11 months ago

1.2.1

11 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