{"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":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"06ffc935272ac6f7994a9c4c1caa766122f84776","tarball":"http://registry-npm.ywwl.com/xdg-trash/download/xdg-trash-1.0.4.tgz","integrity":"sha512-/hkgHgmdjXKlinfHs9JckHiwMHjYdJx+BqBOJ2/TYpw7jxHdZxjwbk7YAdSDymtafGszBtPsC2YIiNManMOyJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICQ09iN99asn31RKysDrPXcd68bb7y+Lj8A7qYXIyDCnAiAU9UNJDuXB0WtPbgNVzndC9t2RLL/oeK0PP+vG4L7Y7A=="}],"size":1441,"noattachment":false,"key":"/xdg-trash/-/xdg-trash-1.0.4.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":1413135242405,"_cnpm_publish_time":1413135242405,"dist-tags":{"latest":"2.0.2"}}