make-folder-txt 1.3.3 → 1.4.1

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.
@@ -172,6 +172,38 @@ if (args.includes("-v") || args.includes("--version")) {
172
172
  process.exit(0);
173
173
  }
174
174
 
175
+ if (args.includes("--help") || args.includes("-h")) {
176
+ console.log(`
177
+ \x1b[33mmake-folder-txt\x1b[0m
178
+ Dump an entire project folder into a single readable .txt file.
179
+ \x1b[33mUSAGE\x1b[0m
180
+ make-folder-txt [options]
181
+ \x1b[33mOPTIONS\x1b[0m
182
+ --ignore-folder <names...> Ignore specific folders by name
183
+ --ignore-file <names...> Ignore specific files by name
184
+ --only-folder <names...> Include only specific folders
185
+ --only-file <names...> Include only specific files
186
+ --help, -h Show this help message
187
+ --version, -v Show version information
188
+ \x1b[33mEXAMPLES\x1b[0m
189
+ make-folder-txt
190
+ make-folder-txt --ignore-folder node_modules dist
191
+ make-folder-txt --ignore-file .env .env.local
192
+ make-folder-txt --only-folder src docs
193
+ make-folder-txt --only-file package.json README.md
194
+ \x1b[33m.TXTIGNORE FILE\x1b[0m
195
+ Create a .txtignore file in your project root to specify files/folders to ignore.
196
+ Works like .gitignore - supports file names, path patterns, and comments.
197
+ Example .txtignore:
198
+ node_modules/
199
+ *.log
200
+ .env
201
+ coverage/
202
+ LICENSE
203
+ `);
204
+ process.exit(0);
205
+ }
206
+
175
207
  const ignoreDirs = new Set(IGNORE_DIRS);
176
208
  const ignoreFiles = new Set(IGNORE_FILES);
177
209
  const onlyFolders = new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-folder-txt",
3
- "version": "1.3.3",
3
+ "version": "1.4.1",
4
4
  "description": "Generate a single .txt file containing the full folder structure and file contents of any project, ignoring node_modules and other junk.",
5
5
  "main": "bin/make-folder-txt.js",
6
6
  "bin": {