{"_id":"delete-empty","_rev":"15-24551a35553b48b1c60fd25ce5db73d2","name":"delete-empty","description":"Recursively delete all empty folders in a directory and child directories.","dist-tags":{"latest":"3.0.0"},"versions":{"0.1.0":{"name":"delete-empty","description":"Recursively delete all empty folders in a directory and child directories.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/delete-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delete-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/delete-empty/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async":"^1.5.0","delete":"^0.2.1","lazy-cache":"^0.2.4","matched":"^0.3.2"},"devDependencies":{"mocha":"*"},"keywords":["del","delete","dir","directory","empty","files","folder","recurse","recursive","remove"],"verb":{"related":{"list":["delete","matched","copy","fs-utils"]}},"_id":"delete-empty@0.1.0","_shasum":"ad253946b8047b4621a076c7bb1c01c915044367","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ad253946b8047b4621a076c7bb1c01c915044367","tarball":"https://registry.npmjs.org/delete-empty/-/delete-empty-0.1.0.tgz","integrity":"sha512-KbdqE6UiVb/z+UpDlYFd7vXigEqcZXSHfVoAq+rdWzFLbh3d/Aookgv1q0KMZS86/skVFqSR2ICju2ndyu0Xlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCj44FYIQat8YpQa1UE5bueWe5vztRSTRKFNQLe7gdP/AIhAOigX0yLa1X+fehH1Nh+sYLfP9FBfbf+Qh7lWHuVuYL1"}]},"directories":{}},"0.1.1":{"name":"delete-empty","description":"Recursively delete all empty folders in a directory and child directories.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/delete-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delete-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/delete-empty/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async":"^1.5.0","delete":"^0.2.1","lazy-cache":"^0.2.4","matched":"^0.3.2"},"devDependencies":{"mocha":"*"},"keywords":["del","delete","dir","directory","empty","files","folder","recurse","recursive","remove"],"verb":{"related":{"list":["delete","matched","copy","fs-utils"]}},"gitHead":"d032f070ad5a6b79f12501af2a7bd84ce076cd24","_id":"delete-empty@0.1.1","_shasum":"6f1e62065eac9a322e7ffb0eb6148c368f05ab75","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6f1e62065eac9a322e7ffb0eb6148c368f05ab75","tarball":"https://registry.npmjs.org/delete-empty/-/delete-empty-0.1.1.tgz","integrity":"sha512-ZpF0vMhqIZbo0gV5dnkD0/429Vwd23YpIeule+E1iWW68WrmP9lvUc2JHX4GU8imj8zWSUEUHPiIf1DmWPU07w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB/owJeTCwubYzUoFE1Zj1cXNrL3xu3pS9DMz/7VU5vcAiEAme4Eiv186H3JTzQRZtDRdpJtqil5PkbSsnXigHflVgE="}]},"directories":{}},"0.1.2":{"name":"delete-empty","version":"0.1.2","description":"Recursively delete all empty folders in a directory and child directories.","homepage":"https://github.com/jonschlinkert/delete-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delete-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/delete-empty/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async":"^1.5.0","delete":"^0.3.0","lazy-cache":"^1.0.3","matched":"^0.4.1"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["del","delete","dir","directory","empty","files","folder","recurse","recursive","remove"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"reflinks":["verb"],"plugins":["gulp-format-md"],"related":{"list":["copy","delete","fs-utils","matched"]},"lint":{"reflinks":true}},"gitHead":"1aa7c7cf4488e25835f887b8fb3d06507d993ae8","_id":"delete-empty@0.1.2","_shasum":"af874ce709cae05d500f4d47ee2e4667c1cb210c","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"af874ce709cae05d500f4d47ee2e4667c1cb210c","tarball":"https://registry.npmjs.org/delete-empty/-/delete-empty-0.1.2.tgz","integrity":"sha512-BaQE87QYdd20vJgScIobTJOswJrvIKMQEsUtSvsJO0Hi5sq9+jDZEJcJKp8Mcj/0RaYOt5uuN8GUARLdeDH3Qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5LEL6XZgtT2JEcx4Sq8Rd/NW+oH4JWJBiACQWRmqqbAiEAvR+cA6pZOV1O5Vw9t8BMSZGNuxN+6CC408J6DkzfbaY="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/delete-empty-0.1.2.tgz_1458851704138_0.8682641226332635"},"directories":{}},"0.1.3":{"name":"delete-empty","version":"0.1.3","description":"Recursively delete all empty folders in a directory and child directories.","homepage":"https://github.com/jonschlinkert/delete-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delete-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/delete-empty/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async":"^1.5.0","delete":"^0.3.2","lazy-cache":"^2.0.1","matched":"^0.4.1"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["del","delete","dir","directory","empty","files","folder","recurse","recursive","remove"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"reflinks":["verb"],"plugins":["gulp-format-md"],"related":{"list":["copy","delete","fs-utils","matched"]},"lint":{"reflinks":true}},"gitHead":"e447c3f9bfc3c3b8c027b18667d8a88ebe074d18","_id":"delete-empty@0.1.3","_shasum":"fc15231aac3fde24eb91899fd1ed8f2d344c2be1","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"fc15231aac3fde24eb91899fd1ed8f2d344c2be1","tarball":"https://registry.npmjs.org/delete-empty/-/delete-empty-0.1.3.tgz","integrity":"sha512-ZQiWimI6KGGrJL6FEtdrW0uIEbahehiYIK0XO3LopoH+u0AYU0awdvWyla8DQOTcLpinM4hgrQYo6u8A9JWHZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHOk886OJLJqDH5XcutwSbDupO02zf+96+ZJ4gaQfgB2AiBapt1oXR3ILyzvVMLZWf8IKzDfD91XdcRhTb5P5mBZaA=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/delete-empty-0.1.3.tgz_1463267622275_0.061932242242619395"},"directories":{}},"1.0.0":{"name":"delete-empty","description":"Recursively delete all empty folders in a directory and child directories.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/delete-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"},{"name":"Sven Schoenung","url":"http://sven.schoenung.org"},{"name":"Vittorio Palmisano","url":"http://c3lab.poliba.it/index.php/VittorioPalmisano"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delete-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/delete-empty/issues"},"license":"MIT","files":["bin","index.js"],"main":"index.js","bin":{"delete-empty":"bin/cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async-each-series":"^1.1.0","log-ok":"^0.1.1","relative":"^3.0.2","rimraf":"^2.6.0"},"devDependencies":{"gulp-format-md":"^0.1.11","matched":"^0.4.4","mocha":"^3.2.0"},"keywords":["del","delete","dir","directory","empty","files","folder","recurse","recursive","remove"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"reflinks":["verb"],"plugins":["gulp-format-md"],"related":{"list":["copy","delete","fs-utils","matched"]},"lint":{"reflinks":true}},"gitHead":"d16e5e875ba7a55fc62a0a5ad43d6062665709c6","_id":"delete-empty@1.0.0","_shasum":"955cf20748a142d67e638900995a43f3fb4e89b0","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"955cf20748a142d67e638900995a43f3fb4e89b0","tarball":"https://registry.npmjs.org/delete-empty/-/delete-empty-1.0.0.tgz","integrity":"sha512-x8qYvIkhNxA/XMKKr1C3myUmpbsZl+6Yvvu0EITlB2VOJvxEDIjI0KS7vFZ8OX5nrd07xxq2c+vpFK3TvCSI/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYn3Eayb+MGVV0jNv8o3ep68UJkkzpMqcvO/QM+h/KMAIgHMx+OS+St3HDUNkCFCjBGulrEA7qDSbQ4+BVUPk4YME="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/delete-empty-1.0.0.tgz_1487929314640_0.019906343892216682"},"directories":{}},"1.0.1":{"name":"delete-empty","description":"Recursively delete all empty folders in a directory and child directories.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/delete-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"},{"name":"Sven Schoenung","url":"http://sven.schoenung.org"},{"name":"Vittorio Palmisano","url":"http://c3lab.poliba.it/index.php/VittorioPalmisano"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delete-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/delete-empty/issues"},"license":"MIT","files":["bin","index.js"],"main":"index.js","bin":{"delete-empty":"bin/cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async-each-series":"^1.1.0","extend-shallow":"^2.0.1","log-ok":"^0.1.1","relative":"^3.0.2","rimraf":"^2.6.1"},"devDependencies":{"gulp-format-md":"^0.1.12","matched":"^0.4.4","mocha":"^3.2.0"},"keywords":["del","delete","dir","directory","empty","files","folder","recurse","recursive","remove"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"reflinks":["verb"],"plugins":["gulp-format-md"],"related":{"list":["copy","delete","fs-utils","matched"]},"lint":{"reflinks":true}},"gitHead":"1a2758298a67f813aabef08fa6d461f42cc5b61a","_id":"delete-empty@1.0.1","_shasum":"f5732911aad6e9b9b6da910de50fb50572c2168b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f5732911aad6e9b9b6da910de50fb50572c2168b","tarball":"https://registry.npmjs.org/delete-empty/-/delete-empty-1.0.1.tgz","integrity":"sha512-8e7zhEQt85CQygPJ5U8bOMIwL2ugX5wh6xHDQy2LcXEYSigkkHl3ll82hyUZN1UyEMqROuw0yKGr3b6hC6aHrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE4iQZLfb8J7GJOzbwfVhQl4DTURYL7HjYRxxMmE5PLJAiBHvyEEL8on1PytkzVi3aWyViglNF8JvFC7je7VKvpSmg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/delete-empty-1.0.1.tgz_1491542858705_0.3238741315435618"},"directories":{}},"2.0.0":{"name":"delete-empty","description":"Recursively delete all empty folders in a directory and child directories.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/delete-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Sven Schoenung","url":"http://sven.schoenung.org"},{"name":"Vittorio Palmisano","url":"http://c3lab.poliba.it/index.php/VittorioPalmisano"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delete-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/delete-empty/issues"},"license":"MIT","files":["bin","index.js"],"main":"index.js","bin":{"delete-empty":"bin/cli.js"},"engines":{"node":">=6"},"scripts":{"test":"mocha"},"dependencies":{"log-ok":"^0.1.1","relative":"^3.0.2","rimraf":"^2.6.2"},"devDependencies":{"async-each-series":"^1.1.0","gulp-format-md":"^1.0.0","matched":"^1.0.2","mocha":"^3.5.3"},"keywords":["del","delete","dir","directory","empty","files","folder","recurse","recursive","remove"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"reflinks":["verb"],"plugins":["gulp-format-md"],"related":{"list":["copy","delete","fs-utils","matched"]},"lint":{"reflinks":true}},"lintDeps":{"devDependencies":{"files":{"patterns":["tree.js"]}}},"gitHead":"591a52336112012192644e650d6f60ed34fbb710","_id":"delete-empty@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"integrity":"sha512-voZ8OiMkVR9MOTTHZ5P0DaMDtIW6xEbXZeADp6U8uwxIJFhs2hRwyIlUZIs5hR4YIp9VYBURqZrV6Yz0ozhVpg==","shasum":"dcf7c4f93a98445119acd57b137d13e7af78fa39","tarball":"https://registry.npmjs.org/delete-empty/-/delete-empty-2.0.0.tgz","fileCount":5,"unpackedSize":12505,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDL6Nfen1PIAiQzNaQlwOQhzLF41vud2WFLz/Zv0q/oMwIgOJ8JFVJUcsbXCt7BERJJb60xu123SkycGwttCpPt7z0="}]},"maintainers":[{"email":"brian.woodward@gmail.com","name":"doowb"},{"email":"github@sellside.com","name":"jonschlinkert"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/delete-empty_2.0.0_1518767636040_0.4905724206382813"},"_hasShrinkwrap":false},"3.0.0":{"name":"delete-empty","description":"Recursively delete all empty folders in a directory and child directories.","version":"3.0.0","homepage":"https://github.com/jonschlinkert/delete-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Sven Schoenung","url":"http://sven.schoenung.org"},{"name":"Vittorio Palmisano","url":"http://c3lab.poliba.it/index.php/VittorioPalmisano"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delete-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/delete-empty/issues"},"license":"MIT","main":"index.js","bin":{"delete-empty":"bin/cli.js"},"engines":{"node":">=10"},"scripts":{"test":"mocha"},"dependencies":{"ansi-colors":"^4.1.0","minimist":"^1.2.0","path-starts-with":"^2.0.0","rimraf":"^2.6.2"},"devDependencies":{"@folder/readdir":"^2.0.0","gulp-format-md":"^1.0.0","mocha":"^3.5.3","write":"^1.0.3"},"keywords":["del","delete","dir","directory","empty","files","folder","recurse","recursive","remove"],"verb":{"run":true,"toc":true,"layout":"default","tasks":["readme"],"reflinks":["verb"],"plugins":["gulp-format-md"],"related":{"list":["copy","delete","fs-utils","matched"]},"lint":{"reflinks":true}},"lintDeps":{"devDependencies":{"files":{"patterns":["tree.js"]}}},"gitHead":"77e147bc833b0bc61c2a28bb7a490f062fdc1c8c","_id":"delete-empty@3.0.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"integrity":"sha512-ZUyiwo76W+DYnKsL3Kim6M/UOavPdBJgDYWOmuQhYaZvJH0AXAHbUNyEDtRbBra8wqqr686+63/0azfEk1ebUQ==","shasum":"f8040f2669f26fa7060bc2304e9859c593b685e8","tarball":"https://registry.npmjs.org/delete-empty/-/delete-empty-3.0.0.tgz","fileCount":5,"unpackedSize":14826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGu/bCRA9TVsSAnZWagAAa2gP/3tr72Ii0fdKjDwmk783\nO+L7sDpeJXUaFcvamgOe5R9INAfCt058qO/T37s9b+J/BYpve64c9zLxXRoq\nh8G8Z3XbsbjmKtbN4AHpFtSR3696ONxLzHSlFZNF8eybtEhoe9ZKuE704IHJ\nLhbrNVwUN+Nw261HgOTDQ+STkzpbBFMYL1gm79lkTYIRQ0BZd+FXzWXqOhNA\n2hn91VrxheU+Ck7l9Xt+nii+41zSAch6ACDND98QU9H9JwdxpCiUDCSih7WF\nhVrSWObCxyrIixD3kqDY/ZLgNq2BdVIjFa6kdhIF0kvzETN8X2ioryI2wyXN\n3HVwb57NCnSvNNemUmii5EuiaFh75iY+zWNtqVlVwk4FgQyN4hVHtYRkbIQz\nrdV1lPt3UIMQloteJttkJNaadhXhAf7dYb3FFc06TjA9iP3+/X1hvWSP5skP\n0rO2JrI2C2qgMDHErcixupr7WZrcG0AN/Fk5Gr/VG1fTHbVpSY8Ujxsh8CyO\nvn80gsjcVRenoNYaKaZYdhPekaMt8OuQ1hNC9RLs3f8hvZfXqVwMr5xKjLxM\n6k23Kv4TffhQbJe3vbpQ56Fwz3XFHuOrfEzJm83dY31z21NSSU4qQ3aftoUE\ngw8ewcho5sICJNNJ4Uv8mp9Op1BvFC5g5dZx2Kk26sY6KfMcj1U554ObD/IQ\n8Tdu\r\n=j6pT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQFVn/OlT4EtjZ5CllvYQ/HbAPA4d79Qe35gwCkWI+ugIhAKwrbLgCseCmid3632ilrfcGoMSIvp31VhpPjM8tZx3v"}]},"maintainers":[{"email":"brian.woodward@gmail.com","name":"doowb"},{"email":"github@sellside.com","name":"jonschlinkert"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/delete-empty_3.0.0_1562046425879_0.9922448723827166"},"_hasShrinkwrap":false}},"readme":"# delete-empty [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/delete-empty.svg?style=flat)](https://www.npmjs.com/package/delete-empty) [![NPM monthly downloads](https://img.shields.io/npm/dm/delete-empty.svg?style=flat)](https://npmjs.org/package/delete-empty) [![NPM total downloads](https://img.shields.io/npm/dt/delete-empty.svg?style=flat)](https://npmjs.org/package/delete-empty) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/delete-empty.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/delete-empty)\n\n> Recursively delete all empty folders in a directory and child directories.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n  * [async-await (promise)](#async-await-promise)\n  * [async callback](#async-callback)\n  * [sync](#sync)\n- [CLI](#cli)\n- [About](#about)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save delete-empty\n```\n\n## Usage\n\n```js\nconst deleteEmpty = require('delete-empty');\n```\n\n## API\n\nGiven the following directory structure, the **highlighted directories** would be deleted.\n\n```diff\nfoo/\n└─┬ a/\n-  ├── aa/\n  ├── bb/\n  │ └─┬ bbb/\n  │ │ ├── one.txt\n  │ │ └── two.txt\n-  ├── cc/\n-  ├ b/\n-  └ c/\n```\n\n### async-await (promise)\n\nIf no callback is passed, a promise is returned. Returns the array of deleted directories.\n\n```js\n(async () => {\n  let deleted = await deleteEmpty('foo');\n  console.log(deleted); //=> ['foo/aa/', 'foo/a/cc/', 'foo/b/', 'foo/c/']\n})();\n\n// or\ndeleteEmpty('foo/')\n  .then(deleted => console.log(deleted)) //=> ['foo/aa/', 'foo/a/cc/', 'foo/b/', 'foo/c/']\n  .catch(console.error);\n```\n\n### async callback\n\nReturns the array of deleted directories in the callback.\n\n```js\ndeleteEmpty('foo/', (err, deleted) => {\n  console.log(deleted); //=> ['foo/aa/', 'foo/a/cc/', 'foo/b/', 'foo/c/']\n});\n```\n\n### sync\n\nReturns the array of deleted directories.\n\n```js\nconsole.log(deleteEmpty.sync('foo/')); //=> ['foo/aa/', 'foo/a/cc/', 'foo/b/', 'foo/c/']\n```\n\n## CLI\n\nTo use the `delete-empty` command from any directory you must first install the package globally with the following command:\n\n```sh\n$ npm install --global delete-empty\n```\n\n**Usage**\n\n```\nUsage: $ delete-empty <directory> [options]\n\nDirectory: (optional) Initial directory to begin the search for empty\n           directories. Otherwise, cwd is used.\n\n[Options]:\n  -c, --cwd           Set the current working directory for folders to search.\n  -d, --dryRun        Do a dry run without deleting any files.\n  -h, --help          Display this help menu\n  -V, --version       Display the current version of rename\n  -v, --verbose       Display all verbose logging messages (currently not used)\n\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [copy](https://www.npmjs.com/package/copy): Copy files or directories using globs. | [homepage](https://github.com/jonschlinkert/copy \"Copy files or directories using globs.\")\n* [delete](https://www.npmjs.com/package/delete): Delete files and folders and any intermediate directories if they exist (sync and async). | [homepage](https://github.com/jonschlinkert/delete \"Delete files and folders and any intermediate directories if they exist (sync and async).\")\n* [fs-utils](https://www.npmjs.com/package/fs-utils): fs extras and utilities to extend the node.js file system module. Used in Assemble and… [more](https://github.com/assemble/fs-utils) | [homepage](https://github.com/assemble/fs-utils \"fs extras and utilities to extend the node.js file system module. Used in Assemble and many other projects.\")\n* [matched](https://www.npmjs.com/package/matched): Adds array support to node-glob, sync and async. Also supports tilde expansion (user home) and… [more](https://github.com/jonschlinkert/matched) | [homepage](https://github.com/jonschlinkert/matched \"Adds array support to node-glob, sync and async. Also supports tilde expansion (user home) and resolving to global npm modules.\")\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 31 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 2  | [treble-snake](https://github.com/treble-snake) |  \n| 1  | [doowb](https://github.com/doowb) |  \n| 1  | [svenschoenung](https://github.com/svenschoenung) |  \n| 1  | [vpalmisano](https://github.com/vpalmisano) |  \n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on July 02, 2019._","maintainers":[{"email":"brian.woodward@gmail.com","name":"doowb"},{"email":"github@sellside.com","name":"jonschlinkert"}],"time":{"modified":"2022-06-14T23:51:54.075Z","created":"2015-12-03T07:05:38.548Z","0.1.0":"2015-12-03T07:05:38.548Z","0.1.1":"2015-12-03T07:20:56.284Z","0.1.2":"2016-03-24T20:35:06.488Z","0.1.3":"2016-05-14T23:13:44.226Z","1.0.0":"2017-02-24T09:41:56.442Z","1.0.1":"2017-04-07T05:27:40.752Z","2.0.0":"2018-02-16T07:53:56.191Z","3.0.0":"2019-07-02T05:47:05.985Z"},"homepage":"https://github.com/jonschlinkert/delete-empty","keywords":["del","delete","dir","directory","empty","files","folder","recurse","recursive","remove"],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/delete-empty.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/delete-empty/issues"},"license":"MIT","readmeFilename":"README.md","users":{"jyounce":true,"trewaters":true,"agplan":true},"contributors":[{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Sven Schoenung","url":"http://sven.schoenung.org"},{"name":"Vittorio Palmisano","url":"http://c3lab.poliba.it/index.php/VittorioPalmisano"}]}