Popularity
2.1
Growing
Activity
3.4
Declining
102
12
3

Monthly Downloads: 219
Programming language: JavaScript
License: MIT License
Tags: Command Line Apps     Files     File     Linux     Windows     Directory     Osx     Dir     Directories     Recycle     Trash     Macos     Clear     Empty    

empty-trash alternatives and similar modules

Based on the "Command Line Apps" category

Do you think we are missing an alternative of empty-trash or a related project?

Add another 'Command Line Apps' Module

README

empty-trash Build Status

Empty the trash

Works on macOS, Linux, and Windows.

Install

$ npm install empty-trash

Usage

const emptyTrash = require('empty-trash');

(async () => {
    await emptyTrash();
})();

Info

On macOS, AppleScript is used as it's the only way to do it without incurring permission issues.

On Linux, the XDG spec is followed.

On Windows, empty-recycle-bin is used.

License

MIT © Sindre Sorhus


*Note that all licence references and agreements mentioned in the empty-trash README section above are relevant to that project's source code only.