An open API service indexing awesome lists of open source software.

https://github.com/r48n34/flatten-dir-deno

📁 A simple CLI for flatten the directory
https://github.com/r48n34/flatten-dir-deno

deno jsr

Last synced: about 2 months ago
JSON representation

📁 A simple CLI for flatten the directory

Awesome Lists containing this project

README

        

# 📁 flatten-dir-deno

![JSR Version](https://img.shields.io/jsr/v/%40reemo/flatten-dir-deno)
![CICD](https://img.shields.io/github/actions/workflow/status/r48n34/flatten-dir-deno/test.yml)

A simple CLI for flatten the directory 📁 with JSR. (For Deno 2.0)

Modify from:
https://www.npmjs.com/package/flatten-directory?activeTab=code

## 💻 Install from JSR (Recommended)
1. Using the following commands.
```bash
deno install --global -A -n flatDir https://jsr.io/@reemo/flatten-dir-deno/0.1.3/mod.ts
```

2. Done, try the following command in terminal.
```bash
flatDir testFolder
```

## 🐙 Install from Git
This methos is for non-denoLand / Jsr install. If you are using the top method to install, you can skip this sections.

1. Git clone the project first
```bash
git clone https://github.com/r48n34/flatten-dir-deno.git
```

2. Install with deno task
```bash
deno task install
```

3. Run with dtree
```bash
flatDir testFolder
```

## 🚀 Usage
Using this repo for sample, the cli will output this result.

```bash
# In default using your working dir
# is the path to copy files
flatDir

e.g. flatDir myCopyFile
```

```md
PS D:\Github\assignment-prompt> flatDir myCopyFile

Processing 25 files...
--------------------------------------
From: D:\Github\assignment-prompt\.git\config
To: D:\Github\assignment-prompt\myCopyFile\.git-config
From: D:\Github\assignment-prompt\.git\description
To: D:\Github\assignment-prompt\myCopyFile\.git-description
//...
```

## 🚫 Uninstall
```bash
deno uninstall flatDir
```

## 🚗 License

MIT License