包详细信息

remove-empty-directories

danielhusar4270.0.1

Remove all empty folders that are in the passed folder

remove, directory, directories, folder

自述文件

Remove Empty directories Build Status

Remove all empty directories from the provided folder. Its all sync as its a lot easier to do it this way :) It will return array of removed directories.

It will not remove the passed directory itself.

Install

npm

npm install --save remove-empty-directories

Sample usage

var removeDirectories = require('remove-empty-directories');
var removed = removeDirectories('public');

CLI

You can also use it as a CLI app by installing it globally:

npm install --global remove-empty-directories
$ remove-directories --help

Usage:
  $ remove-directories --public
  $ remove-directories --public/assets

Options

path

Type: String
Default: ''

Path where to look for empty directories

License

MIT © Daniel Husar