{"name":"xdg-trashdir","version":"1.0.2","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":"848b32641a5dadb7f2353f7b6c3c17c8a212efec","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir","_id":"xdg-trashdir@1.0.2","_shasum":"e565d9d93bae03a7a67317f08301d0243b95f6d8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"e565d9d93bae03a7a67317f08301d0243b95f6d8","tarball":"http://registry-npm.ywwl.com/xdg-trashdir/download/xdg-trashdir-1.0.2.tgz","integrity":"sha512-rzwh12xlDPYWU/V1+b1YePmQnkrCrgI1GVPl3Gq7010M9MG1Ofkz+g4JINNABNuY4tJwkhwT+EvD7AIPwLoV/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcucFLJZw5uUE9mp41/6YmXnUnDjJ1uZ3pRf54lgKMxQIgao3VZ7Fh+7vN46oPc/b0AQkPAkqwtw1JhAB0npkBi+8="}],"size":1214,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-1.0.2.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":1413039312199,"_cnpm_publish_time":1413039312199,"dist-tags":{"latest":"3.1.0"}}