talira

Compare

globglobbyrimraf
What it isMatch files using the patterns the shell usesGlob matching for Node.js with negated patterns, directory expansion and .gitignore supportrm -rf for Node.js, cross-platform
KindOpen sourceOpen sourceOpen source
Trust0.610.450.54
Stars871027125859
Last commit2026-11-252026-08-192026-11-03
LicenceBlueOak-1.0.0MITBlueOak-1.0.0
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyIsaac Z. SchlueterSindre SorhusIsaac Z. Schlueter
Features
  • promise, sync, async iterator and stream APIs
  • multiple patterns and ignore patterns in one call
  • cancellation with an AbortSignal
  • protection against regular expression denial of service
  • Windows path handling, with an option for backslash separators
  • escape and unescape helpers for patterns
  • multiple and negated glob patterns
  • directory expansion
  • .gitignore and other ignore files, as Git applies them
  • promise, sync and stream APIs
  • 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
Limitations
    • Patterns must use forward slashes: on Windows, patterns with backslashes silently fail
    • ESM only and needs Node.js 20 or newer
    • Deletes recursively by design: never pass it untrusted input, and security reports that rely on untrusted input are rejected