{"_id":"rmdir","_rev":"146243","name":"rmdir","description":"Remove all files in the given path recursively","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"time":{"modified":"2021-06-03T11:29:55.000Z","created":"2012-07-08T01:27:53.266Z","1.2.0":"2016-01-19T06:20:11.298Z","1.1.0":"2015-02-16T09:49:22.404Z","1.0.4":"2014-01-09T16:54:30.699Z","1.0.3":"2013-12-18T19:01:23.627Z","1.0.2":"2013-12-12T19:37:50.158Z","1.0.1":"2013-12-12T11:43:10.181Z","1.0.0":"2012-07-23T04:00:32.956Z","0.0.3":"2012-07-08T11:07:19.812Z","0.0.2":"2012-07-08T04:02:21.769Z","0.0.1":"2012-07-08T01:27:53.266Z"},"users":{"fgribreau":true,"snowdream":true,"teaera":true,"vzg03566":true,"mr-smiley":true},"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"versions":{"1.2.0":{"name":"rmdir","version":"1.2.0","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"contributors":[{"name":"Aaron Larner"},{"name":"Glen R. Goodwin"},{"name":"David Pate","email":"davidtpate@gmail.com","url":"http://davidtpate.com"},{"name":"Radare","email":"pancake@nopcode.org","url":"http://www.radare.org/"}],"dependencies":{"node.flow":"1.2.3"},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.8.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"scripts":{"test":"node test/run.js"},"gitHead":"79e06aac58b9d24c06dab1ca2864c42e96c0f76c","bugs":{"url":"https://github.com/dreamerslab/node.rmdir/issues"},"homepage":"https://github.com/dreamerslab/node.rmdir","_id":"rmdir@1.2.0","_shasum":"4fe0357cb06168c258e73e968093dc4e8a0f3253","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"dist":{"shasum":"4fe0357cb06168c258e73e968093dc4e8a0f3253","size":3137,"noattachment":false,"key":"/rmdir/-/rmdir-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-1.2.0.tgz"},"directories":{},"publish_time":1453184411298,"_cnpm_publish_time":1453184411298,"_hasShrinkwrap":false},"1.1.0":{"name":"rmdir","version":"1.1.0","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"contributors":[{"name":"Aaron Larner"},{"name":"Glen R. Goodwin"},{"name":"David Pate","email":"davidtpate@gmail.com","url":"http://davidtpate.com"}],"dependencies":{"node.flow":"1.2.3"},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.8.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"scripts":{"test":"node test/run.js"},"gitHead":"49b16bf74d622985c39cd6dfdb9c305c412b3ae1","bugs":{"url":"https://github.com/dreamerslab/node.rmdir/issues"},"homepage":"https://github.com/dreamerslab/node.rmdir","_id":"rmdir@1.1.0","_shasum":"b9bc19de33b310aae71efee67fbdcbb0868bc2ad","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.35","_npmUser":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"dist":{"shasum":"b9bc19de33b310aae71efee67fbdcbb0868bc2ad","size":3088,"noattachment":false,"key":"/rmdir/-/rmdir-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-1.1.0.tgz"},"directories":{},"publish_time":1424080162404,"_cnpm_publish_time":1424080162404,"_hasShrinkwrap":false},"1.0.4":{"name":"rmdir","version":"1.0.4","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"contributors":[{"name":"Aaron Larner"},{"name":"Glen R. Goodwin"}],"dependencies":{"node.flow":"1.2.3"},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.8.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"scripts":{"test":"node test/run.js"},"readmeFilename":"Readme.md","bugs":{"url":"https://github.com/dreamerslab/node.rmdir/issues"},"homepage":"https://github.com/dreamerslab/node.rmdir","_id":"rmdir@1.0.4","dist":{"shasum":"98133bbfd171bcd8270c23e17455499243e835c7","size":2791,"noattachment":false,"key":"/rmdir/-/rmdir-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-1.0.4.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"directories":{},"publish_time":1389286470699,"_cnpm_publish_time":1389286470699,"_hasShrinkwrap":false},"1.0.3":{"name":"rmdir","version":"1.0.3","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"contributors":[{"name":"Aaron Larner"}],"dependencies":{"node.flow":"1.2.3"},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.8.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"readmeFilename":"Readme.md","bugs":{"url":"https://github.com/dreamerslab/node.rmdir/issues"},"homepage":"https://github.com/dreamerslab/node.rmdir","_id":"rmdir@1.0.3","dist":{"shasum":"739f84a9a1fad7f0429a1eb01e7c2b59cf2f719f","size":2703,"noattachment":false,"key":"/rmdir/-/rmdir-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-1.0.3.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"directories":{},"publish_time":1387393283627,"_cnpm_publish_time":1387393283627,"_hasShrinkwrap":false},"1.0.2":{"name":"rmdir","version":"1.0.2","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"dependencies":{"node.flow":"1.2.3"},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.8.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"readmeFilename":"Readme.md","bugs":{"url":"https://github.com/dreamerslab/node.rmdir/issues"},"homepage":"https://github.com/dreamerslab/node.rmdir","_id":"rmdir@1.0.2","dist":{"shasum":"b21aa3e0330b8dec1ecb698a1572d73292ebd921","size":2625,"noattachment":false,"key":"/rmdir/-/rmdir-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-1.0.2.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"directories":{},"publish_time":1386877070158,"_cnpm_publish_time":1386877070158,"_hasShrinkwrap":false},"1.0.1":{"name":"rmdir","version":"1.0.1","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"dependencies":{"node.flow":"1.2.2"},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.8.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"readmeFilename":"Readme.md","bugs":{"url":"https://github.com/dreamerslab/node.rmdir/issues"},"homepage":"https://github.com/dreamerslab/node.rmdir","_id":"rmdir@1.0.1","dist":{"shasum":"cfd66e909068ceea281fa225e5a05ee4a5fb4c5e","size":2604,"noattachment":false,"key":"/rmdir/-/rmdir-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"directories":{},"publish_time":1386848590181,"_cnpm_publish_time":1386848590181,"_hasShrinkwrap":false},"1.0.0":{"name":"rmdir","version":"1.0.0","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.8.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"_id":"rmdir@1.0.0","dist":{"shasum":"481e18328887fffafa38ee58656818fa59f60028","size":2375,"noattachment":false,"key":"/rmdir/-/rmdir-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-1.0.0.tgz"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"directories":{},"publish_time":1343016032956,"_cnpm_publish_time":1343016032956,"_hasShrinkwrap":false},"0.0.3":{"name":"rmdir","version":"0.0.3","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.4.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"_id":"rmdir@0.0.3","dist":{"shasum":"04d086d061aa72e4abfbbf4d045de65cbd5a8bfd","size":2325,"noattachment":false,"key":"/rmdir/-/rmdir-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-0.0.3.tgz"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"directories":{},"publish_time":1341745639812,"_cnpm_publish_time":1341745639812,"_hasShrinkwrap":false},"0.0.2":{"name":"rmdir","version":"0.0.2","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.4.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"_id":"rmdir@0.0.2","dist":{"shasum":"acebeacfc031e0fb939fef171430122186060fe7","size":2298,"noattachment":false,"key":"/rmdir/-/rmdir-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-0.0.2.tgz"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"directories":{},"publish_time":1341720141769,"_cnpm_publish_time":1341720141769,"_hasShrinkwrap":false},"0.0.1":{"name":"rmdir","version":"0.0.1","description":"Remove all files in the given path recursively","keywords":["remove","remove files","remove all files","remove path","remove dir","rm -r","rmdir","remove files recursively"],"author":{"name":"dreamerslab","email":"ben@dreamerslab.com"},"dependencies":{},"repository":{"type":"git","url":"https://github.com/dreamerslab/node.rmdir.git"},"main":"index","engines":["node >= 0.4.0"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"_id":"rmdir@0.0.1","dist":{"shasum":"a65aa24714ea14173f7e94943463cbffa6f2c609","size":2268,"noattachment":false,"key":"/rmdir/-/rmdir-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rmdir/download/rmdir-0.0.1.tgz"},"maintainers":[{"name":"dreamerslab","email":"ben@dreamerslab.com"}],"directories":{},"publish_time":1341710873266,"_cnpm_publish_time":1341710873266,"_hasShrinkwrap":false}},"readme":"# rmdir\n\nRemove all files in the given path recursively.\n\n## Description\n\nOr just use `require( 'child_process' ).exec` and call `rm -r`\n\n    var exec = require('child_process').exec;\n    var path = '/path/to/the/dir';\n\n    exec('rm -r ' + path, function (err, stdout, stderr) {\n      // your callback goes here\n    });\n\n## Requires\n\n    node >= 0.4.x\n\n## Installation\n\n    npm install rmdir\n\n## Usage\n\n> Require the module before using\n\n    var rmdir = require('rmdir');\n\n### rmdir(path, [options], [callback]);\n\nYou can optionally pass in an alternate fs implementation by passing in `options.fs`.Your implementation should have `fs.lstat(path, callback)`, `fs.unlink(path, callback)`, `fs.readdir(path, callback)`, `fs.rmdir(path, callback)`, and `fs.exists(path, callback)` implemented.\n\n#### Arguments\n\n> path\n\n    type: String\n    desc: The path to be clear.\n\n> options\n\n    type: Object\n    desc: Options to be used when removing all files.\n\n> callback\n\n    type: Function\n    desc: The callback to be called after all files are removed.\n    arguments:\n      err:\n      type: Error\n    dirs:\n      type: Array\n    desc: The removed dirs.\n    files:\n      type: Array\n    desc: The removed files.\n\n#### Example\n\n    var rmdir = require('rmdir');\n    var path = '/path/to/the/dir';\n\n    rmdir(path + '/assets', function (err, dirs, files) {\n      console.log(dirs);\n      console.log(files);\n      console.log('all files are removed');\n    });\n\n## Creadit\n\n[Aaron Larner](https: //github.com/alarner)\n[Glen R.Goodwin](https: //github.com/arei)\n[David Pate](https: //github.com/DavidTPate)\n[Radare](https://github.com/radare)\n\n## License\n\n(The MIT License)\n\nCopyright(c) 2011 dreamerslab & lt; ben@ dreamerslab.com & gt;\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and / or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/dreamerslab/node.rmdir","bugs":{"url":"https://github.com/dreamerslab/node.rmdir/issues"}}