API Reference
make-dir
Cross-platform directory creation with correct mode and native recursion support.
Official Documentation ↗CompatibilityThis documentation covers version
v5.0.0. Check the official docs for the latest API surface.Installation
npm
npm install make-dirpnpm
pnpm add make-dirMethods
No methods match this filter.
make-dir is cross-platform directory creation with correct mode and native recursion support.
Key Features
Installation
npm install make-dir
Usage
FAQ
- Is make-dir cross-platform?
- Yes, make-dir works on Windows, macOS, and Linux, normalizing paths and permission modes.
- Does make-dir handle EMFILE errors?
- Yes, make-dir gracefully retries on too many open files, avoiding EMFILE crashes.
- Are operations atomic?
- Atomic variants write to a temp file then rename, preventing partial reads during concurrent writes.
Report a problem with this API docOpens a pre-filled issue on GitHub.