{"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","tarball":"http://registry-npm.ywwl.com/xdg-trash/download/xdg-trash-2.0.0.tgz","integrity":"sha512-F9ZIvJKd3QlcsJghIb5RQF/mBrazEGZ2j9V0RADdTCLLbunuddIcZkdVDYtDIxxIN34tuHH3vjnRq4fcKCjvHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcG4TQbQ67Mev6Am8Ps8qgyLhfgoiCJftFCVD144kasAIhALXvSv57wf2LOMZspylX4xNB3H4FU7HyP/bcXnD/mrsx"}],"size":2097,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-2.0.0.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":1444059351988,"_cnpm_publish_time":1444059351988,"dist-tags":{"latest":"2.0.2"}}