@hutsoninc/flatten-dir-cli

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    119
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    119
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @hutsoninc/flatten-dir-cli

Weekly Downloads

91

Version

1.0.2

License

MIT

Unpacked Size

3.25 kB

Total Files

4

Last publish

Collaborators

  • austinleegordon