-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create the script for tree generation
- Loading branch information
1 parent
645f361
commit 79c5892
Showing
5 changed files
with
76 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 📂 tree-lens | ||
|
||
**A simple and powerful CLI tool to generate a tree-like structure of a directory and its contents.** | ||
|
||
[](https://www.npmjs.com/package/tree-lens) 📦 Available on **[npm](https://www.npmjs.com/package/tree-lens)** | ||
|
||
## 🚀 Features | ||
|
||
- ✅ **Instant Directory Visualization** – Generate a structured tree representation of any directory. | ||
- ✅ **Easy to Use** – Just install and run a single command. | ||
- ✅ **Minimal & Lightweight** – No unnecessary dependencies. | ||
- ✅ **Customizable Output** – Future updates may include filtering, formatting, and exporting options. | ||
|
||
## 📥 Installation | ||
|
||
Install `tree-lens` globally using npm: | ||
|
||
```sh | ||
npm install -g tree-lens | ||
``` | ||
|
||
## 📌 Usage | ||
|
||
**Generate a tree for the current directory** | ||
|
||
```sh | ||
tree-lens "path/to/directory" | ||
``` | ||
|
||
| Option | Description | | ||
| :----------- | :-------------------------------------------------------------------------------------------- | | ||
| `--A` | Show all files and folders | | ||
| `--F` | Show only folders **(default behavior)** | | ||
| `--<number>` | Maximum depth level (e.g., --3 for 3 levels deep -- **default is All files in the directory** | | ||
| Example | `tree-lens ./` or `tree-lens ./src/ --F --5` or `tree-lens ./ --A --3` | | ||
|
||
## 📝 Example Output | ||
|
||
(in the generated directory_structure.txt file) | ||
|
||
[](https://i.postimg.cc/0jxz4YTQ/structure.png "asd") | ||
|
||
## 🤝 Contributing | ||
|
||
Contributions are welcome! If you have ideas or find bugs, feel free to open an issue or submit a pull request. | ||
|
||
#### Made with ❤️ by Mohammad Khakshoor |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "tree-lens", | ||
"version": "1.0.2", | ||
"description": "A simple and powerful CLI tool to generate a tree-like structure of a directory and its contents.", | ||
"main": "index.js", | ||
"type": "module", | ||
"bin": { | ||
"tree-lens": "./index.js" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"CLI", | ||
"directory", | ||
"tree", | ||
"file-structure", | ||
"tree-generator", | ||
"file-generator", | ||
"directory-visualization" | ||
], | ||
"author": "Mohammad Khakshoor", | ||
"license": "MIT", | ||
"repository": "https://github.com/mohammadkhakshoor/tree-lens.git", | ||
"bugs": { | ||
"url": "https://github.com/mohammadkhakshoor/tree-lens/issues" | ||
}, | ||
"homepage": "https://github.com/mohammadkhakshoor/tree-lens#readme" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.