2.0.2 • Published 10 years ago

xdg-trash v2.0.2

Weekly downloads
883
License
MIT
Repository
github
Last release
10 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

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.1.0

10 years ago

1.0.6

10 years ago

1.0.5

11 years ago

1.0.4

11 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago