make-folder-txt 2.2.9 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/bin/make-folder-txt.js +961 -612
- package/package.json +1 -1
- package/make-folder-txt.txt +0 -1258
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ Ever needed to share your entire project with ChatGPT, Claude, or a teammate —
|
|
|
25
25
|
- ✅ Built-in help system with `--help` flag
|
|
26
26
|
- ✅ File size control with `--skip-large` and `--no-skip`
|
|
27
27
|
- ✅ Output splitting by folders, files, or size
|
|
28
|
+
- ✅ Reverse mode to recreate folders from generated `.txt` files
|
|
28
29
|
- ✅ Copy to clipboard with `--copy` flag
|
|
29
30
|
- ✅ Force include everything with `--force` flag
|
|
30
31
|
- ✅ Generates a clean folder tree + every file's content
|
|
@@ -160,6 +161,16 @@ make-folder-txt --split-method size --split-size 2MB --ignore-folder node_module
|
|
|
160
161
|
|
|
161
162
|
**Note**: Splitting is not compatible with `--copy` flag.
|
|
162
163
|
|
|
164
|
+
### 🔄 Reverse a Txt Back Into a Folder
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
make-folder-txt --reverse # Restore from <current-folder>.txt
|
|
168
|
+
make-folder-txt --reverse my-project.txt # Restore from a specific dump
|
|
169
|
+
make-folder-txt --reverse my-project.txt --force # Overwrite existing restored files
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
The `--reverse` flag reads a `.txt` file created by `make-folder-txt` and recreates its files inside a folder named after the original dump. Existing files are skipped unless you add `--force`.
|
|
173
|
+
|
|
163
174
|
Ignore specific folders/files by name:
|
|
164
175
|
|
|
165
176
|
```bash
|