remove-empty-directories

    0.0.1 • Public • Published

    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

    Install

    npm i remove-empty-directories

    DownloadsWeekly Downloads

    115

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • efrafa