2.0.2 • Published 9 years ago

xdg-trash v2.0.2

Weekly downloads
883
License
MIT
Repository
github
Last release
9 years ago

xdg-trash Build Status

Safely move files and directories to trash on Linux

Install

$ npm install --save xdg-trash

Usage

const xdgTrash = require('xdg-trash');

xdgTrash(['foo.txt', 'bar.tar']).then(() => {
	console.log('Files successfully moved to trash!');
});

API

xdgTrash(files)

Move files to trash. Returns a promise that resolves to an array containing the removed files.

files

Required
Type: array

Files to be moved to trash.

CLI

See the trash CLI.

License

MIT © Kevin Mårtensson

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.0

9 years ago

1.0.6

9 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago