Skip to content

hutsoninc/flatten-dir-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flatten-dir-cli

Current npm package version

Recursively flatten a directory (moves all files from subfolders into the one folder).

Installation

npm install --global @hutsoninc/flatten-dir-cli

Usage

$ flatten --help

  Recursively flatten a directory

  Usage
    $ flatten <directory-to-flatten>
$ tree
.
├── stuff
│   ├── things.txt
│   ├── 1
│   │   ├── things.txt
│   │   └── more-things.txt
│   └── 2
│       └── another-thing.txt
│ ...

$ flatten stuff

$ tree
.
├── stuff
│   ├── things.txt
│   ├── things-1.txt
│   ├── more-things.txt
│   └── another-thing.txt
│ ...

Related

License

MIT © Hutson Inc

About

Recursively flatten a directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published