{"_id":"xdg-trash","_rev":"112907","name":"xdg-trash","description":"Safely move files and directories to trash on Linux","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:45:19.000Z","created":"2014-10-05T16:59:52.584Z","2.0.2":"2015-10-13T07:26:26.427Z","2.0.1":"2015-10-06T08:29:14.273Z","2.0.0":"2015-10-05T15:35:51.988Z","1.1.0":"2015-04-09T17:17:25.130Z","1.0.6":"2015-02-09T14:14:58.275Z","1.0.5":"2014-10-14T17:19:03.211Z","1.0.4":"2014-10-12T17:34:02.405Z","1.0.3":"2014-10-11T07:41:05.528Z","1.0.2":"2014-10-06T20:04:30.572Z","1.0.1":"2014-10-05T23:50:16.078Z","1.0.0":"2014-10-05T16:59:52.584Z"},"users":{"temasm":true},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"versions":{"2.0.2":{"name":"xdg-trash","version":"2.0.2","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"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":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"fs-extra":"^0.18.0","pify":"^2.2.0","pinkie-promise":"^1.0.0","uuid":"^2.0.1","xdg-trashdir":"^2.0.0"},"devDependencies":{"ava":"^0.2.0","path-exists":"^1.0.0","xo":"*"},"xo":{"ignore":["test.js"]},"gitHead":"d4600340b6d071fd845f317666f52263fe4fbe6c","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash","_id":"xdg-trash@2.0.2","_shasum":"5e4cd9df6bd03d414b5de100e207f2dd355fc356","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5e4cd9df6bd03d414b5de100e207f2dd355fc356","size":2117,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-2.0.2.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"deprecated":"Deprecated in favor of the `trash` module","directories":{},"publish_time":1444721186427,"_cnpm_publish_time":1444721186427,"_hasShrinkwrap":false},"2.0.1":{"name":"xdg-trash","version":"2.0.1","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/xdg-trash.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":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"fs-extra":"^0.18.0","pinkie-promise":"^1.0.0","uuid":"^2.0.1","xdg-trashdir":"^2.0.0"},"devDependencies":{"ava":"^0.2.0","path-exists":"^1.0.0","xo":"*"},"xo":{"ignore":["test.js"]},"gitHead":"b3a47e39db9333870c51e4e23e134b0c8f26434e","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash#readme","_id":"xdg-trash@2.0.1","_shasum":"4852171484c13e2fd8e9296002b8d93c61288113","_from":".","_npmVersion":"3.3.3","_nodeVersion":"4.1.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"4852171484c13e2fd8e9296002b8d93c61288113","size":2113,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-2.0.1.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1444120154273,"_cnpm_publish_time":1444120154273,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false},"2.0.0":{"name":"xdg-trash","version":"2.0.0","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/xdg-trash.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":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"fs-extra":"^0.18.0","pinkie-promise":"^1.0.0","uuid":"^2.0.1","xdg-trashdir":"^2.0.0"},"devDependencies":{"ava":"^0.2.0","path-exists":"^1.0.0","xo":"*"},"xo":{"ignore":["test.js"]},"gitHead":"2ad98a570655631ab4f833dd7c310832c696a776","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash#readme","_id":"xdg-trash@2.0.0","_shasum":"024f9adeaeaf34411c016f7a09640fd1b7610bbe","_from":".","_npmVersion":"3.3.3","_nodeVersion":"4.1.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"024f9adeaeaf34411c016f7a09640fd1b7610bbe","size":2097,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-2.0.0.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1444059351988,"_cnpm_publish_time":1444059351988,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false},"1.1.0":{"name":"xdg-trash","version":"1.1.0","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"each-async":"^1.1.0","fs-extra":"^0.18.0","uuid":"^2.0.1","xdg-trashdir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"677c6a33c1f6e20d35ab090b1e085720f6d315aa","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash","_id":"xdg-trash@1.1.0","_shasum":"219d24c1417ead112d875131e6cde303cb44c51a","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"219d24c1417ead112d875131e6cde303cb44c51a","size":2144,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-1.1.0.tgz"},"directories":{},"publish_time":1428599845130,"_cnpm_publish_time":1428599845130,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false},"1.0.6":{"name":"xdg-trash","version":"1.0.6","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"each-async":"^1.1.0","fs-extra":"^0.16.0","uuid":"^2.0.1","xdg-trashdir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"edab2d0ea732b968b023648af5726a6ee70c22e9","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash","_id":"xdg-trash@1.0.6","_shasum":"5d13427235e5155ea518d8e7df614300c460521c","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"5d13427235e5155ea518d8e7df614300c460521c","size":2089,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-1.0.6.tgz"},"directories":{},"publish_time":1423491298275,"_cnpm_publish_time":1423491298275,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false},"1.0.5":{"name":"xdg-trash","version":"1.0.5","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"each-async":"^1.1.0","fs-extra":"^0.12.0","uuid":"^2.0.1","xdg-trashdir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"683a4465498b11b7fd155b4dc3b805fd539f6eb3","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash","_id":"xdg-trash@1.0.5","_shasum":"5473316b2a1ec2e9329fbeb4d767ffe939cc1c82","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"5473316b2a1ec2e9329fbeb4d767ffe939cc1c82","size":1465,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-1.0.5.tgz"},"directories":{},"publish_time":1413307143211,"_cnpm_publish_time":1413307143211,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false},"1.0.4":{"name":"xdg-trash","version":"1.0.4","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"each-async":"^1.1.0","fs-extra":"^0.12.0","uuid":"^2.0.1","xdg-trashdir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"352632247b02ef23b9f81674a85a5a27da83b07a","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash","_id":"xdg-trash@1.0.4","_shasum":"06ffc935272ac6f7994a9c4c1caa766122f84776","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"06ffc935272ac6f7994a9c4c1caa766122f84776","size":1441,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-1.0.4.tgz"},"directories":{},"publish_time":1413135242405,"_cnpm_publish_time":1413135242405,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false},"1.0.3":{"name":"xdg-trash","version":"1.0.3","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"each-async":"^1.1.0","fs-extra":"^0.12.0","uuid":"^2.0.1","xdg-trashdir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"c00a5b75609af4f85d97bb3c12879f78ee949606","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash","_id":"xdg-trash@1.0.3","_shasum":"f7c5b410bee1974b25713377ba4899e5a0b1202e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"f7c5b410bee1974b25713377ba4899e5a0b1202e","size":1402,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-1.0.3.tgz"},"directories":{},"publish_time":1413013265528,"_cnpm_publish_time":1413013265528,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false},"1.0.2":{"name":"xdg-trash","version":"1.0.2","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"each-async":"^1.1.0","fs-extra":"^0.12.0","uuid":"^2.0.1","xdg-trashdir":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"fce9bff948186057b1899aaeec5983a72621133a","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash","_id":"xdg-trash@1.0.2","_shasum":"06e3bded46775d716e84cb3c1509f1d43cd0b48e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"06e3bded46775d716e84cb3c1509f1d43cd0b48e","size":1396,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-1.0.2.tgz"},"directories":{},"publish_time":1412625870572,"_cnpm_publish_time":1412625870572,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false},"1.0.1":{"name":"xdg-trash","version":"1.0.1","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"each-async":"^1.1.0","fs-extra":"^0.12.0","uuid":"^2.0.1"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"87b888aea721d69a0d4326a79ebf88780a6b907e","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash","_id":"xdg-trash@1.0.1","_shasum":"adb9e77e61adb792fce2b379a58fc64936fd2056","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"adb9e77e61adb792fce2b379a58fc64936fd2056","size":1398,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-1.0.1.tgz"},"directories":{},"publish_time":1412553016078,"_cnpm_publish_time":1412553016078,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false},"1.0.0":{"name":"xdg-trash","version":"1.0.0","description":"Safely move files and directories to trash on Linux","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/xdg-trash"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["delete","dir","file","linux","recycle","trash","xdg"],"dependencies":{"each-async":"^1.1.0","fs-extra":"^0.12.0","mv":"^2.0.3","uuid":"^2.0.1"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"4d3d9091d07e296ce5fa22dc1f6512d2d8519809","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"homepage":"https://github.com/kevva/xdg-trash","_id":"xdg-trash@1.0.0","_shasum":"b66f00a8eb335113bb5cb6ad55138c2c8e5c5ea4","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"b66f00a8eb335113bb5cb6ad55138c2c8e5c5ea4","size":1335,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xdg-trash/download/xdg-trash-1.0.0.tgz"},"directories":{},"publish_time":1412528392584,"_cnpm_publish_time":1412528392584,"deprecated":"Deprecated in favor of the `trash` module","_hasShrinkwrap":false}},"readme":"# xdg-trash [![Build Status](http://img.shields.io/travis/kevva/xdg-trash.svg?style=flat)](https://travis-ci.org/kevva/xdg-trash)\n\n> Safely move files and directories to trash on Linux\n\n\n## Install\n\n```\n$ npm install --save xdg-trash\n```\n\n\n## Usage\n\n```js\nconst xdgTrash = require('xdg-trash');\n\nxdgTrash(['foo.txt', 'bar.tar']).then(() => {\n\tconsole.log('Files successfully moved to trash!');\n});\n```\n\n\n## API\n\n### xdgTrash(files)\n\nMove files to trash. Returns a promise that resolves to an array containing the removed files.\n\n#### files\n\n*Required*  \nType: `array`\n\nFiles to be moved to trash.\n\n\n## CLI\n\nSee the [trash](https://github.com/sindresorhus/trash#cli) CLI.\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","_attachments":{},"homepage":"https://github.com/kevva/xdg-trash","bugs":{"url":"https://github.com/kevva/xdg-trash/issues"},"license":"MIT"}