make-folder-txt 1.4.0 → 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.
- package/bin/make-folder-txt.js +6 -12
- package/package.json +1 -1
package/bin/make-folder-txt.js
CHANGED
|
@@ -173,33 +173,27 @@ if (args.includes("-v") || args.includes("--version")) {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
if (args.includes("--help") || args.includes("-h")) {
|
|
176
|
-
console.log(`
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
console.log(`
|
|
177
|
+
\x1b[33mmake-folder-txt\x1b[0m
|
|
179
178
|
Dump an entire project folder into a single readable .txt file.
|
|
180
|
-
|
|
181
|
-
USAGE
|
|
179
|
+
\x1b[33mUSAGE\x1b[0m
|
|
182
180
|
make-folder-txt [options]
|
|
183
|
-
|
|
184
|
-
OPTIONS
|
|
181
|
+
\x1b[33mOPTIONS\x1b[0m
|
|
185
182
|
--ignore-folder <names...> Ignore specific folders by name
|
|
186
183
|
--ignore-file <names...> Ignore specific files by name
|
|
187
184
|
--only-folder <names...> Include only specific folders
|
|
188
185
|
--only-file <names...> Include only specific files
|
|
189
186
|
--help, -h Show this help message
|
|
190
187
|
--version, -v Show version information
|
|
191
|
-
|
|
192
|
-
EXAMPLES
|
|
188
|
+
\x1b[33mEXAMPLES\x1b[0m
|
|
193
189
|
make-folder-txt
|
|
194
190
|
make-folder-txt --ignore-folder node_modules dist
|
|
195
191
|
make-folder-txt --ignore-file .env .env.local
|
|
196
192
|
make-folder-txt --only-folder src docs
|
|
197
193
|
make-folder-txt --only-file package.json README.md
|
|
198
|
-
|
|
199
|
-
.TXTIGNORE FILE
|
|
194
|
+
\x1b[33m.TXTIGNORE FILE\x1b[0m
|
|
200
195
|
Create a .txtignore file in your project root to specify files/folders to ignore.
|
|
201
196
|
Works like .gitignore - supports file names, path patterns, and comments.
|
|
202
|
-
|
|
203
197
|
Example .txtignore:
|
|
204
198
|
node_modules/
|
|
205
199
|
*.log
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "make-folder-txt",
|
|
3
|
-
"version": "1.4.
|
|
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": {
|