Skip to main content
Home

A simple CLI for flatten the directory

This package works with Deno, Bun
This package works with Deno
This package works with Bun
JSR Score
100%
Published
9 months ago (0.1.3)

📁 flatten-dir-deno

JSR Version CICD

A simple CLI for flatten the directory 📁 with JSR.

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

💻 Install from JSR (Recommended)

  1. Using the following commands.
deno install -A -n flatDir https://jsr.io/@reemo/flatten-dir-deno/0.1.3/mod.ts
  1. Done, try the following command in terminal.
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
git clone https://github.com/r48n34/flatten-dir-deno.git
  1. Install with deno task
deno task install
  1. Run with dtree
flatDir testFolder

🚀 Usage

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

# In default using your working dir
# <output_dir> is the path to copy files
flatDir <output_dir>

e.g. flatDir myCopyFile
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

deno uninstall flatDir 

🚗 License

MIT License

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@reemo/flatten-dir-deno

Import symbol

import * as flatten_dir_deno from "@reemo/flatten-dir-deno";
or

Import directly with a jsr specifier

import * as flatten_dir_deno from "jsr:@reemo/flatten-dir-deno";

Add Package

bunx jsr add @reemo/flatten-dir-deno

Import symbol

import * as flatten_dir_deno from "@reemo/flatten-dir-deno";