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
- Host: GitHub
- URL: https://github.com/r48n34/flatten-dir-deno
- Owner: r48n34
- License: mit
- Created: 2024-10-04T01:38:09.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T08:30:54.000Z (6 months ago)
- Last Synced: 2025-01-08T20:22:58.442Z (4 months ago)
- Topics: deno, jsr
- Language: TypeScript
- Homepage: https://jsr.io/@reemo/flatten-dir-deno
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📁 flatten-dir-deno

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
flatDire.g. flatDir myCopyFile
``````md
PS D:\Github\assignment-prompt> flatDir myCopyFileProcessing 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