0.0.1 • Published 10 years ago
remove-empty-directories v0.0.1
Remove Empty directories
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
0.0.1
10 years ago