| What it is | Node.js fs with recursive mkdir, copy, remove and promises | Delete files and directories by glob in Node.js, with a promise API | rm -rf for Node.js, cross-platform | Glob matching for Node.js with negated patterns, directory expansion and .gitignore support |
| Kind | Open source | Open source | Open source | Open source |
| Trust | 0.56 | 0.46 | 0.54 | 0.45 |
| Stars | 9592 | 1346 | 5859 | 2712 |
| Last commit | 2026-11-11 | 2026-10-08 | 2026-11-03 | 2026-08-19 |
| Licence | MIT | MIT | BlueOak-1.0.0 | MIT |
| Pricing | Free and open source | Free and open source | Free and open source | Free and open source |
| Free tier | Yes | Yes | Yes | Yes |
| Self-hostable | — | — | — | — |
| Ways to run it | — | — | — | — |
| SOC 2 | — | — | — | — |
| HIPAA | — | — | — | — |
| SSO | — | — | — | — |
| API | — | — | — | — |
| Plugins | — | — | — | — |
| MCP server | — | — | — | — |
| Company | JP Richardson | Sindre Sorhus | Isaac Z. Schlueter | Sindre Sorhus |
| Features | - recursive copy, remove, move and mkdirs
- read and write JSON files
- promise support for every fs method
- drop-in replacement for fs
| - deletes files and directories by glob patterns, with negations
- promise-based deleteAsync and synchronous deleteSync
- protects the working directory and its parents unless forced
- dry run that returns the paths it would delete
- concurrency limit and gitignore-aware exclusions
| - async, sync and native APIs
- CLI for npm scripts
- Windows retries with backoff and move-then-remove fallback
- glob patterns
- AbortSignal support
- root deletion protection
| - multiple and negated glob patterns
- directory expansion
- .gitignore and other ignore files, as Git applies them
- promise, sync and stream APIs
|
| Limitations | | - Glob patterns can only use forward slashes; Windows paths with glob characters need path.posix.join()
| - Deletes recursively by design: never pass it untrusted input, and security reports that rely on untrusted input are rejected
| - Patterns must use forward slashes: on Windows, patterns with backslashes silently fail
- ESM only and needs Node.js 20 or newer
|