Move files and directories to the trash
https://github.com/sindresorhus/trash/compare/v5.1.0...v5.2.0
https://github.com/sindresorhus/trash/compare/v5.0.0...v5.1.0
Breaking:
Iterable
as input, use string | string[]
aa29749Enhancements:
https://github.com/sindresorhus/trash/compare/v4.3.0...v5.0.0
The command-line tool was extracted into a separate module called trash-cli. (https://github.com/sindresorhus/trash/commit/bb137049c992deab5eef388e08f40c93787dd3a1) (Note that it now requires Node.js 4. Make sure to upgrade your Node.js install)
Run this to migrate to the new CLI tool package:
$ npm uninstall --global trash && npm install --global trash-cli
You still use it as $ trash
.
We decided to change trash
to not error on missing files. It was only in the way and made it harder to use trash
in scripts. The --force
flag was also removed as it's pretty moot now. #29 #26
https://github.com/sindresorhus/trash/compare/v1.4.1...v2.0.0
Removed the sound effect when trashing on OS X and made the trashing much faster by rewriting it as a native binary. Fixes #18.
https://github.com/sindresorhus/trash/compare/v1.3.1...v1.4.0
Got rid of the Python requirement for Linux as @kevva implemented xdg-trash which is now used.