Ross ROSS = Recommend OSS · open-source software intelligence for agents

sindresorhus/trash

Move files and directories to the trash observed · 2026-08-28

github.com/sindresorhus/trash · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

72/100

  • Activity 69
  • Release rhythm 60
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 48
  • age_days: 4494
  • days_rel: 189
  • days_push: 189
  • n_releases_24m: 4

Full methodology

Adoption not part of the score

2665 stars · 81 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Node.js library that safely moves files and directories to the OS trash/recycle bin instead of permanently deleting them, with glob pattern support. It works cross-platform on macOS, Windows, and Linux (XDG spec).

Use cases

  • safely delete files to trash instead of rm
  • move files to recycle bin from nodejs
  • reversible file deletion in a script
  • delete files with glob patterns to trash
  • cross-platform trash support in a node app

When to choose

  • you want deletions to be recoverable via the OS trash
  • you need cross-platform safe file removal in Node.js
  • you want glob-based file matching before trashing

When to avoid

  • you need permanent, irreversible deletion (use del or rimraf)
  • you need robust Linux support, which is poorly maintained
  • you're running as a Windows service account where recycle bin behavior is problematic

Facets

library · maturity active

file-system cli files developer-tools cross-platform windows cli trash recycle-bin safe-delete glob npm-package nodejs macos linux

2 sources

Member repositories

RepositoryRoleHealth v2
sindresorhus/trashmain72

For agents

markdown · JSON · MCP: product_card(name="sindresorhus/trash")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem