{"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","tarball":"http://registry-npm.ywwl.com/xdg-trash/download/xdg-trash-2.0.1.tgz","integrity":"sha512-mD6R2wsv05cUT6qpL6EIUi8EHq+NZHqVL62sNcWBpZSKsXH6TMoRLZQzvBwBJxZBajvBDJFgHR9YkYsuw3XS5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbqNB9rd0V8Y5G3bqZMA0qkU7mdVGrS5J8VOOvNPwnlQIhAL+Hb5V5SzeDpfuVz4V1l11lzLoeEq/hTkixPwh8OHmy"}],"size":2113,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-2.0.1.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"deprecated":"Deprecated in favor of the `trash` module","directories":{},"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","publish_time":1444120154273,"_cnpm_publish_time":1444120154273,"dist-tags":{"latest":"2.0.2"}}