{"_id":"xdg-trashdir","_rev":"112970","name":"xdg-trashdir","description":"Get the correct trash path on Linux","dist-tags":{"latest":"3.1.0"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:45:24.000Z","created":"2014-10-06T19:18:25.263Z","3.1.0":"2019-09-07T15:06:44.921Z","3.0.0":"2019-09-06T12:48:10.485Z","2.1.1":"2017-11-29T13:07:25.023Z","2.1.0":"2016-01-03T19:28:13.232Z","2.0.0":"2015-10-05T13:46:50.384Z","1.1.1":"2015-01-13T18:39:34.475Z","1.1.0":"2015-01-03T16:05:01.162Z","1.0.3":"2014-10-31T12:18:55.553Z","1.0.2":"2014-10-11T14:55:12.199Z","1.0.1":"2014-10-06T21:11:21.521Z","1.0.0":"2014-10-06T19:18:25.263Z"},"users":{"axelrindle":true},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"repository":{"type":"git","url":"git+https://github.com/kevva/xdg-trashdir.git"},"versions":{"3.1.0":{"name":"xdg-trashdir","version":"3.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":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["dir","file","linux","recycle","trash","xdg"],"dependencies":{"@sindresorhus/df":"^3.1.1","mount-point":"^3.0.0","user-home":"^2.0.0","xdg-basedir":"^4.0.0"},"devDependencies":{"ava":"^2.3.0","execa":"^2.0.4","tsd":"^0.7.4","xo":"^0.24.0"},"gitHead":"dcf294ad559730660477c2f2dad56858fa7af588","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir#readme","_id":"xdg-trashdir@3.1.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"shasum":"7294262d5793eb5488c2f529fba883ec32a24ea0","size":2277,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-3.1.0.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xdg-trashdir_3.1.0_1567868804834_0.3063953175569756"},"_hasShrinkwrap":false,"publish_time":1567868804921,"_cnpm_publish_time":1567868804921},"3.0.0":{"name":"xdg-trashdir","version":"3.0.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":">=10"},"scripts":{"test":"xo && ava"},"keywords":["dir","file","linux","recycle","trash","xdg"],"dependencies":{"@sindresorhus/df":"^3.1.1","mount-point":"^3.0.0","user-home":"^2.0.0","xdg-basedir":"^4.0.0"},"devDependencies":{"ava":"^2.3.0","execa":"^2.0.4","xo":"^0.24.0"},"gitHead":"242a77635cbedee77800a1cf6c4b34decf132585","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir#readme","_id":"xdg-trashdir@3.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.11.2","dist":{"shasum":"a1f0f31c0ac0aea32a78dc1b028d0a13c0413627","size":2115,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-3.0.0.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xdg-trashdir_3.0.0_1567774090206_0.00415553077743569"},"_hasShrinkwrap":false,"publish_time":1567774090485,"_cnpm_publish_time":1567774090485},"2.1.1":{"name":"xdg-trashdir","version":"2.1.1","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":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["dir","file","linux","recycle","trash","xdg"],"dependencies":{"@sindresorhus/df":"^2.1.0","mount-point":"^3.0.0","pify":"^2.2.0","user-home":"^2.0.0","xdg-basedir":"^2.0.0"},"devDependencies":{"ava":"*","execa":"^0.4.0","xo":"*"},"xo":{"esnext":true},"gitHead":"79dc06197fecbbd3da4652dcf3a15f6d053a6d0b","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir#readme","_id":"xdg-trashdir@2.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"59a60aaf8e6f9240c1daed9a0944b2f514c27d8e","size":2194,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-2.1.1.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xdg-trashdir-2.1.1.tgz_1511960843787_0.214255437720567"},"directories":{},"publish_time":1511960845023,"_hasShrinkwrap":false,"_cnpm_publish_time":1511960845023},"2.1.0":{"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","size":2220,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-2.1.0.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1451849293232,"_cnpm_publish_time":1451849293232,"_hasShrinkwrap":false},"2.0.0":{"name":"xdg-trashdir","version":"2.0.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":{"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":"345387560a38dafb5aaddadba6cbfa7d2b3620a6","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir#readme","_id":"xdg-trashdir@2.0.0","_shasum":"169b958392099f1cbdcd1b53e8bddf145be35646","_from":".","_npmVersion":"3.3.3","_nodeVersion":"4.1.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"169b958392099f1cbdcd1b53e8bddf145be35646","size":2065,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-2.0.0.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1444052810384,"_cnpm_publish_time":1444052810384,"_hasShrinkwrap":false},"1.1.1":{"name":"xdg-trashdir","version":"1.1.1","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","user-home":"^1.1.0","xdg-basedir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"750ae1506d6f17e8bd4910a0f42e2afe7043804f","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir","_id":"xdg-trashdir@1.1.1","_shasum":"3cbdc8de596642396725de40a20bcf402b6d5db5","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"3cbdc8de596642396725de40a20bcf402b6d5db5","size":1310,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-1.1.1.tgz"},"directories":{},"publish_time":1421174374475,"_cnpm_publish_time":1421174374475,"_hasShrinkwrap":false},"1.1.0":{"name":"xdg-trashdir","version":"1.1.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":{"mount-point":"^1.0.0","user-home":"^1.1.0","xdg-basedir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"26bf309ab425f6488d1ca4b4bf33b98c88f657e7","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir","_id":"xdg-trashdir@1.1.0","_shasum":"67972964f5b80947ca17ba72e8d995fef71351f3","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"67972964f5b80947ca17ba72e8d995fef71351f3","size":1314,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-1.1.0.tgz"},"directories":{},"publish_time":1420301101162,"_cnpm_publish_time":1420301101162,"_hasShrinkwrap":false},"1.0.3":{"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":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"8df4be55629617be0c5ece0b76ab6cac658d52c7","size":1941,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-1.0.3.tgz"},"directories":{},"publish_time":1414757935553,"_cnpm_publish_time":1414757935553,"_hasShrinkwrap":false},"1.0.2":{"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":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"e565d9d93bae03a7a67317f08301d0243b95f6d8","size":1214,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-1.0.2.tgz"},"directories":{},"publish_time":1413039312199,"_cnpm_publish_time":1413039312199,"_hasShrinkwrap":false},"1.0.1":{"name":"xdg-trashdir","version":"1.0.1","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":"ba49c2d300be183528bac7799b9d2ca977c8cbf1","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"homepage":"https://github.com/kevva/xdg-trashdir","_id":"xdg-trashdir@1.0.1","_shasum":"c6965e4da441d2b35e17bf397656cb73104f2488","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"c6965e4da441d2b35e17bf397656cb73104f2488","size":1275,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-1.0.1.tgz"},"directories":{},"publish_time":1412629881521,"_cnpm_publish_time":1412629881521,"_hasShrinkwrap":false},"1.0.0":{"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":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"c005700685e32aa1fde3e58b5b9997f3f375d665","size":1257,"noattachment":false,"key":"/xdg-trashdir/-/xdg-trashdir-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trashdir/download/xdg-trashdir-1.0.0.tgz"},"directories":{},"publish_time":1412623105263,"_cnpm_publish_time":1412623105263,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/kevva/xdg-trashdir#readme","bugs":{"url":"https://github.com/kevva/xdg-trashdir/issues"},"license":"MIT"}