{"name":"xdg-trashdir","version":"2.1.0","description":"Get the correct trash path on Linux","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/xdg-trashdir.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["dir","file","linux","recycle","trash","xdg"],"dependencies":{"@sindresorhus/df":"^1.0.1","mount-point":"^1.0.0","pify":"^2.2.0","pinkie-promise":"^1.0.0","user-home":"^1.1.0","xdg-basedir":"^1.0.0"},"devDependencies":{"xo":"*","ava":"*"},"xo":{"ignore":["test/test.js"]},"gitHead":"61046f06206c6a6aba3573ddcb1497ec27c889a3","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir#readme","_id":"xdg-trashdir@2.1.0","_shasum":"57e33efed7e68d68fd46b5d7344abab37107030c","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"57e33efed7e68d68fd46b5d7344abab37107030c","tarball":"http://registry-npm.ywwl.com/xdg-trashdir/download/xdg-trashdir-2.1.0.tgz","integrity":"sha512-+xkQItDUgj9aFLkpwq71wBL63yGN5wkYdVgMDrnnZrT8jxMVo5AJoBUqWO9kMJnWZS1xKGHu/zrVx5ghTeqfHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7WLJfh2kHLLOkpETP4qJ9JF28258oItJv+4eNqVbxqwIhAKsu+PRLjUuW51OUTLyvPJzSyRg3RnoJPo1s2EdihBB0"}],"size":2220,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-2.1.0.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# xdg-trashdir [![Build Status](https://travis-ci.org/kevva/xdg-trashdir.svg?branch=master)](https://travis-ci.org/kevva/xdg-trashdir)\n\n> Get the correct trash path on Linux according to the [spec](http://www.ramendik.ru/docs/trashspec.html)\n\n\n## Install\n\n```\n$ npm install xdg-trashdir\n```\n\n\n## Usage\n\n```js\nconst xdgTrashdir = require('xdg-trashdir');\n\n(async () => {\n\tconsole.log(await xdgTrashdir());\n\t//=> '/home/johndoe/.local/share/Trash'\n\n\tconsole.log(await xdgTrashdir('foo.zip'));\n\t//=> '/media/johndoe/UUI/.Trash-1000'\n\n\tconsole.log(await xdgTrashdir.all());\n\t//=> ['/home/johndoe/.local/share/Trash', '/media/johndoe/UUI/.Trash-1000', …]\n})();\n```\n\n\n## API\n\n### xdgTrashdir(file?)\n\nReturns a `Promise<string>` with the path to the trash.\n\n#### file\n\nType: `string`\n\nGet the trash path for a specific file.\n\n### xdgTrashdir.all()\n\nReturns a `Promise<string[]>` with all possible trash paths.\n","publish_time":1451849293232,"_cnpm_publish_time":1451849293232,"dist-tags":{"latest":"3.1.0"}}