{"name":"xdg-trashdir","version":"1.0.3","description":"Get the correct trash path on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trashdir"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test/test.js"},"files":["index.js"],"keywords":["dir","file","linux","recycle","trash","xdg"],"dependencies":{"mount-point":"^1.0.0","xdg-basedir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"303df2eef3c44d2cef4e48dd32bc9ff1b552c64c","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir","_id":"xdg-trashdir@1.0.3","_shasum":"8df4be55629617be0c5ece0b76ab6cac658d52c7","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.32","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"8df4be55629617be0c5ece0b76ab6cac658d52c7","tarball":"http://registry-npm.ywwl.com/xdg-trashdir/download/xdg-trashdir-1.0.3.tgz","integrity":"sha512-+Rpuo0Up38GpuuTZqvNrAacXwhhMWSEj3SB+pt4q+fGbkdoY52nkbnAsosscq/hZ/ac9D6PahcD1E0xSerbgPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2fCcBn8iEUHNB3FkIcHpjOkycTbPVXUtdDChYRBBvywIgSQKGoWHOTgdTfMp6iUo26gMCkVYFNqtWRBb2BLII/R8="}],"size":1941,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-1.0.3.tgz"},"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":1414757935553,"_cnpm_publish_time":1414757935553,"dist-tags":{"latest":"3.1.0"}}