GitShow/sindresorhus/trash
sindresorhus

trash

Move files and directories to the trash

by sindresorhus
deletenodejsnpm-packagerecycle-bintrash
Star on GitHubForknpm

JavaScript

2.7k stars81 forks29 contributorsQuiet · 4mo agoSince 2014v10.1.1MIT

Meet the team

See all 29 on GitHub →
sindresorhus
sindresorhus140 contributions
fregante
fregante5 contributions
kevva
kevva4 contributions
BendingBender
BendingBender2 contributions
arthurvr
arthurvr1 contribution
BolajiAyodeji
BolajiAyodeji1 contribution
brandon93s
brandon93s1 contribution
magenta404
magenta4041 contribution

Languages

View on GitHub →
JavaScript98.5%
TypeScript1.5%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
bitinn
macOS: Trash multiple files won't get `put back` optionsClosedIssue

cron1 does not appear to allow in trash. The only difference appear to be cron1 pass all files to at once, cron2 pass and run 1 by 1. I might be doing something wrong, but unable to spot it. PS: since is silent, do you see anyway I can make this command verbose? so I can do a simple at the end to count files?

bitinn · 4mo ago
leolabs
Trash doesn't work when bundled with an Electron app (ENOTDIR)ClosedIssue

First of all, thank you for all that you do for the JS ecosystem! I'm trying to use your "trash" package in my Electron app and noticed that it doesn't work when the app is packaged. I get the following error: Debugging this, I noticed that Electron Builder automatically places the package in an folder, but the resolved path in is . Is there a way to fix this? Maybe an option to override the binary paths or an automatic way to detect if the library is running in a packaged Electron app? I'm looking forward to your reply!

leolabs · 5mo ago
solrevdev
Directories are silently ignored (not trashed) due to globby onlyFiles defaultClosedIssue

See https://github.com/sindresorhus/trash-cli/issues/42 Not sure which repo to log so details there and linking here.

solrevdev · 5mo ago
Structured data for AI agents

Repository: sindresorhus/trash. Description: Move files and directories to the trash Stars: 2660, Forks: 81. Primary language: JavaScript. Languages: JavaScript (98.5%), TypeScript (1.5%). License: MIT. Topics: delete, nodejs, npm-package, recycle-bin, trash. Latest release: v10.1.1 (4mo ago). Open PRs: 0, open issues: 1. Last activity: 4mo ago. Community health: 85%. Top contributors: sindresorhus, fregante, kevva, BendingBender, arthurvr, BolajiAyodeji, brandon93s, magenta404, omnidan, konsumer and others.

·@ofershap

Replace github.com with gitshow.dev