New:Socket for Asana Is Now Available.Learn more
Get Started

@lxf2513/readdir-sync-recursive

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lxf2513/readdir-sync-recursive

Reads the contents of the directory synchronously and recursively.

latest
Source
npmnpm
Version
1.3.3
Version published
Weekly downloads
19
137.5%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

readdirSync

FAQs

Package last updated on 20 Nov 2025

Related posts