4.0.27 • Published 5 months ago

fs-manager-cli v4.0.27

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

FS-Manager-CLI

Description

fs-manager-cli is a command-line tool built to make your life easier by fetching jokes and printing directory trees directly from your terminal.

Features

  • Fetch a random joke or based on a search term
  • View the directory tree of any given path

Installation

To install fs-manager-cli, run:

npm install -g fs-manager-cli

Usage

View Directory Tree

To print a tree of the current directory:

fs-manager-cli view-tree

Options

  • -p, --path <path>: Specify a path to view its directory tree.
  • -e, --excludeFolder <excludeFolder>: Exclude a specific folder from the tree.

Create a JSON dump of directory tree

Creates a JSON backup of the current|path directory:

fs-manager-cli backup

Options

  • -p, --path <path>: Specify a path to view its directory tree.
  • -e, --excludeFolder <excludeFolder>: Exclude a specific folder from the tree.

Restructure files using MIME-TYPE

Restructures files using MIME-TYPE of given type:

fs-manager-cli restructure

Options

  • -p, --path <path>: Add a path
  • -e, --excludeFolder <excludeFolder>:Add a folder name which you don't want to restructure
  • -ext, --extension <extension>: Add a extensions which you want to restructure

Fetch a Joke

To fetch a random joke:

fs-manager-cli joke

Options

  • -n, --name <name>: Your name to personalize the joke.
  • -s, --search <search>: Search term to fetch a specific joke.

Examples

View Tree of Current Directory

fs-manager-cli view-tree

View Tree of Specified Path

fs-manager-cli view-tree -p /usr/local

Create a Backup

fs-manager-cli backup

Create a Backup of Specified Path

fs-manager-cli backup -p /usr/local

Restructure Files

fs-manager-cli restructure -p /usr/local -ext jpg,png -e node_modules 

Fetch a Joke for John

fs-manager-cli joke -n John

Fetch a Joke About Cats

fs-manager-cli joke -s cats

License

MIT


Feel free to contribute and raise issues. Enjoy using fs-manager-cli!

4.0.1

5 months ago

4.0.0

5 months ago

4.0.2

5 months ago

4.0.27

5 months ago

4.0.26

5 months ago

4.0.25

5 months ago

3.0.0

6 months ago

2.0.3

7 months ago

2.0.2

7 months ago

2.0.1

7 months ago

2.1.0

7 months ago

2.0.0

7 months ago

1.0.0

7 months ago