{"name":"xdg-trashdir","version":"1.0.0","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":{"mkdirp":"^0.5.0","mount-point":"^1.0.0","xdg-basedir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"8a052ac4290d091602d26918e135053f05b8651e","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir","_id":"xdg-trashdir@1.0.0","_shasum":"c005700685e32aa1fde3e58b5b9997f3f375d665","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"dist":{"shasum":"c005700685e32aa1fde3e58b5b9997f3f375d665","tarball":"http://registry-npm.ywwl.com/xdg-trashdir/download/xdg-trashdir-1.0.0.tgz","integrity":"sha512-mQaV7/8HvGkg2+jxn73/XV6B2dkcsav4n8azqjYC8BXUMGi6arbIzygkyd549jBUnwpZjwB9H9YDMd0V3VGP6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm896xxAFt81jrWcx6dCk9Xiw9jY3oHW3A0Q8pbhaQfQIhAIfBYENDUeFNc+g4uSzWL6b8hprDlFjHP92zN7MEzfSA"}],"size":1257,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-1.0.0.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":1412623105263,"_cnpm_publish_time":1412623105263,"dist-tags":{"latest":"3.1.0"}}