{"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":"kevinmartensson@gmail.com"}],"dist":{"shasum":"adb9e77e61adb792fce2b379a58fc64936fd2056","tarball":"http://registry-npm.ywwl.com/xdg-trash/download/xdg-trash-1.0.1.tgz","integrity":"sha512-4hrWWFb0qbC4409UHowAp/CTHknfyZXPwaAExtgZ4IarzyYnlN0soo4061JOTn07mdf4DBiPCYILY3xVgWj/rQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQdM/zE/t3HmW61o/OWUJGbpnbyOSIoic/4A9Gr9GAgAiBYNNY6/rfi5GBvsNUcL8LIvC/VFdNumHrWud6sdTQdIQ=="}],"size":1398,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.0.1.tgz"},"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":1412553016078,"_cnpm_publish_time":1412553016078,"dist-tags":{"latest":"2.0.2"}}