sindresorhus/trash-cli
View on GitHub ↗ ★ 1,419 JavaScript
Move files and folders to the trash
4 mentions on Hacker News by 4 people: 1 story, 3 comments · first 2016-04-15 · latest 2021-11-09
20082026
-
…willing to lean into npm a bit, there's tools that give a layer of protection over rm such as https://github.com/sindresorhus/trash-cli
comment by throwawaycuriou · 2021-11-09 · in $ sudo rm -rf / === NPM install -
…that moves files to "trash". Alias "rm" to display an error message to avoid accidental deletions. https://github.com/sindresorhus/trash-cli
comment by inertial · 2017-10-11 · in Times I've Messed Up as a Developer -
▲ 1
Trash-clistory by pradeeprawat · 2016-10-17 · 0 comments
-
…to the trash [1] instead. [0]: https://github.com/sindresorhus/guides/blob/master/how-not-t... [1]: https://github.com/sindresorhus/trash-cli
comment by mofle · 2016-04-15 · in Man accidentally 'deletes his entire company' with one line of bad code