sindresorhus

trash

Move files and directories to the trash

by sindresorhus

JavaScript

JavaScript98.5%
TypeScript1.5%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

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

Recent PRs & issues

Active · 2 discussions · Last activity 1mo ago
See all on GitHub →
Roger-Gu

I'm not sure if it's more a problem about npm or about this package, but when I run a build script on Mac, the binary (hashed version of macos-trash) that gets downloaded does not have the executable permission, and we have to manually set it in the build script. Is that happening to anyone else?

Roger-Gu · 3mo ago
bitinn

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 · 7mo ago
leolabs

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 · 8mo ago
Structured data for AI agents

Repository: sindresorhus/trash. Description: Move files and directories to the trash Stars: 2665, Forks: 82. 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 (7mo ago). Open PRs: 0, open issues: 2. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, fregante, kevva, BendingBender, arthurvr, BolajiAyodeji, bndnsmth, magenta404, omnidan, konsumer and others.