# fs-manager-cli

> A file manager

Latest version **4.0.27** (published 2023-12-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install fs-manager-cli
pnpm add fs-manager-cli
yarn add fs-manager-cli
bun add fs-manager-cli
```

Provides the command `fs-manager-cli`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.27 |
| Published | 2023-12-24 |
| First published | 2023-10-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | bikramghosh9595@gmail.com |
| Maintainers | bikramggg |

## Links

- npm: https://www.npmjs.com/package/fs-manager-cli
- Repository: https://github.com/Bmg09/fs-manager-cli
- Homepage: https://github.com/Bmg09/fs-manager-cli#readme
- Issues: https://github.com/Bmg09/fs-manager-cli/issues
- npm.io page: https://npm.io/package/fs-manager-cli

## Dependencies (4)

- [mime](https://npm.io/package/mime.md) ^3.0.0
- [axios](https://npm.io/package/axios.md) ^1.5.1
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [commander](https://npm.io/package/commander.md) ^11.0.0

## Recent versions

- 4.0.27 (latest) — 2023-12-24
- 4.0.26 — 2023-12-24
- 4.0.25 — 2023-12-24
- 4.0.2 — 2023-12-24
- 4.0.1 — 2023-12-24
- 4.0.0 — 2023-12-24
- 3.0.0 — 2023-10-28
- 2.0.3 — 2023-10-02
- 2.0.2 — 2023-10-02
- 2.0.1 — 2023-10-02
- 2.1.0 — 2023-10-02
- 2.0.0 — 2023-10-02
- 1.0.0 — 2023-10-02

## README

# 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:

```bash
npm install -g fs-manager-cli
```
## Usage

### View Directory Tree

To print a tree of the current directory:

```bash
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:

```bash
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:

```bash
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:

```bash
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

```bash
fs-manager-cli view-tree
```


### View Tree of Specified Path

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

### Create a Backup

```bash
fs-manager-cli backup
```

### Create a Backup of Specified Path

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

### Restructure Files
```bash
fs-manager-cli restructure -p /usr/local -ext jpg,png -e node_modules 
```
### Fetch a Joke for John

```bash
fs-manager-cli joke -n John
```

### Fetch a Joke About Cats

```bash
fs-manager-cli joke -s cats
```

## License

MIT

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

---
_Source: https://npm.io/package/fs-manager-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
