make-folder-txt 1.3.3 → 1.4.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.
@@ -172,6 +172,44 @@ 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
+ make-folder-txt
178
+
179
+ Dump an entire project folder into a single readable .txt file.
180
+
181
+ USAGE
182
+ make-folder-txt [options]
183
+
184
+ OPTIONS
185
+ --ignore-folder <names...> Ignore specific folders by name
186
+ --ignore-file <names...> Ignore specific files by name
187
+ --only-folder <names...> Include only specific folders
188
+ --only-file <names...> Include only specific files
189
+ --help, -h Show this help message
190
+ --version, -v Show version information
191
+
192
+ EXAMPLES
193
+ make-folder-txt
194
+ make-folder-txt --ignore-folder node_modules dist
195
+ make-folder-txt --ignore-file .env .env.local
196
+ make-folder-txt --only-folder src docs
197
+ make-folder-txt --only-file package.json README.md
198
+
199
+ .TXTIGNORE FILE
200
+ Create a .txtignore file in your project root to specify files/folders to ignore.
201
+ Works like .gitignore - supports file names, path patterns, and comments.
202
+
203
+ Example .txtignore:
204
+ node_modules/
205
+ *.log
206
+ .env
207
+ coverage/
208
+ LICENSE
209
+ `);
210
+ process.exit(0);
211
+ }
212
+
175
213
  const ignoreDirs = new Set(IGNORE_DIRS);
176
214
  const ignoreFiles = new Set(IGNORE_FILES);
177
215
  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.0",
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": {