xdg-trashdir
Get the correct trash path on Linux according to the spec
Install
$ npm install --save xdg-trashdir
Usage
const xdgTrashdir = ; ; ; xdgTrashdirall;
API
xdgTrashdir([file])
Returns a promise that resolves the path to the trash.
file
Type: string
Get the trash path for a specific file.
xdgTrashdir.all()
Returns a promise that resolves to an array with all possible trash paths.
License
MIT © Kevin Mårtensson