talira

Compare

tmp (Node.js)rimrafdelfs-extra
What it isTemporary file and directory creator for Node.jsrm -rf for Node.js, cross-platformDelete files and directories by glob in Node.js, with a promise APINode.js fs with recursive mkdir, copy, remove and promises
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.340.540.460.56
Stars776585913469592
Last commit2026-05-272026-11-032026-10-082026-11-11
LicenceMITBlueOak-1.0.0MITMIT
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins————
MCP server————
CompanyKARASZI IstvánIsaac Z. SchlueterSindre SorhusJP Richardson
Features
  • temporary files and directories, async and sync APIs
  • random names from crypto, or templates with a six-letter random identifier
  • optional removal on process exit
  • a custom temporary directory instead of the system one
  • 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
  • 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
  • recursive copy, remove, move and mkdirs
  • read and write JSON files
  • promise support for every fs method
  • drop-in replacement for fs
Limitations
  • Needs Node.js 14.14 or newer.
  • Deletes recursively by design: never pass it untrusted input, and security reports that rely on untrusted input are rejected
  • Glob patterns can only use forward slashes; Windows paths with glob characters need path.posix.join()