repomeld 2.0.3 โ†’ 2.0.5

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.
Files changed (3) hide show
  1. package/README.md +337 -226
  2. package/bin/cli.js +367 -370
  3. package/package.json +32 -6
package/README.md CHANGED
@@ -2,7 +2,29 @@
2
2
 
3
3
  > Meld your entire repo into a single file โ€” perfect for AI context, code reviews & sharing.
4
4
 
5
- > ๐Ÿ’ผ **Author [`susheelhbti@gmail.com`](mailto:susheelhbti@gmail.com) is open to freelance & full-time work.**
5
+ [![npm version](https://badge.fury.io/js/repomeld.svg)](https://www.npmjs.com/package/repomeld)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ ---
9
+
10
+ > ## ๐Ÿ’ผ Open to Work
11
+ > **The author is available for freelance & full-time work.**
12
+ > ๐Ÿ“ง [susheelhbti@gmail.com](mailto:susheelhbti@gmail.com) โ€” reach out anytime!
13
+
14
+ ---
15
+
16
+ ## โœจ Features
17
+
18
+ - ๐Ÿš€ **Fast & Efficient** - Async scanning with real-time progress
19
+ - ๐ŸŽจ **Multiple Styles** - Banner, Markdown, or Minimal output
20
+ - ๐Ÿ” **Smart Filtering** - Extension, pattern, and size-based filtering
21
+ - ๐Ÿ“ **Gitignore Support** - Respects your .gitignore rules automatically
22
+ - ๐Ÿ’พ **Binary Detection** - Intelligently skips binary files
23
+ - ๐Ÿ“ฆ **Single File Output** - Perfect for AI context windows
24
+ - ๐Ÿ”„ **Auto-Numbering** - Never overwrites existing files
25
+ - ๐Ÿ’ฟ **Zip Backup** - Creates timestamped backups of all included files
26
+ - ๐Ÿ”” **Update Notifications** - Know when new versions are available
27
+ - ๐ŸŽฏ **Force Include** - Override ignore rules when needed
6
28
 
7
29
  ---
8
30
 
@@ -12,6 +34,12 @@
12
34
  npm install -g repomeld
13
35
  ```
14
36
 
37
+ Or use without installing:
38
+
39
+ ```bash
40
+ npx repomeld
41
+ ```
42
+
15
43
  ---
16
44
 
17
45
  ## Quick Start
@@ -21,327 +49,410 @@ cd your-project
21
49
  repomeld
22
50
  ```
23
51
 
24
- **No flags needed.** repomeld will walk you through 7 quick questions and configure itself:
52
+ That's it. repomeld walks your project, respects `.gitignore`, skips binary files, and writes everything into one readable file.
25
53
 
26
- ```
27
- โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
28
- โ•‘ repomeld v1.2.0 โ•‘
29
- โ•‘ Meld your repo into one file ๐Ÿ”ฅ โ•‘
30
- โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
31
-
32
- ๐Ÿ’ผ Author susheelhbti@gmail.com is open to freelance & full-time work
33
-
34
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
35
- โ”‚ Interactive setup โ€” answer 7 quick questions โ”‚
36
- โ”‚ Press Enter to accept the [default] value โ”‚
37
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
38
-
39
- ๐Ÿ“„ 1/7 Output filename? [repomeld_output.txt]
40
- >
41
-
42
- ๐ŸŽจ 2/7 Header style?
43
- 1) banner โ€” clear dividers with file info (default)
44
- 2) markdown โ€” great for pasting into AI prompts
45
- 3) minimal โ€” filename only, no extra formatting
46
- >
47
-
48
- ๐Ÿ” 3/7 Filter to specific file extensions?
49
- e.g. js ts php py (leave blank = include ALL files)
50
- >
51
-
52
- ๐Ÿ—๏ธ 4/7 Enable structure-only mode? (y/n) [n]
53
- Strips function bodies โ€” keeps class names + signatures only.
54
- Cuts a 400-line file to ~30 lines. Perfect for AI architecture review.
55
- >
56
-
57
- ๐Ÿ”— 5/7 Generate a code review graph? (y/n) [n]
58
- Adds a Mermaid call graph at the top of the output.
59
- AI models read Mermaid natively โ€” shows which files connect to which.
60
- >
61
-
62
- ๐Ÿ“‹ 6/7 Include a table of contents? (y/n) [y]
63
- >
64
-
65
- ๐Ÿงช 7/7 Dry run only? (y/n) [n]
66
- Preview which files would be included without writing anything.
67
- >
68
- ```
54
+ ---
55
+
56
+ ## Auto-Numbered Output โ€” No Overwriting
69
57
 
70
- After answering, it shows a summary and runs:
58
+ Every time you run repomeld it creates a **new numbered file** so previous runs are never lost:
71
59
 
72
60
  ```
73
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
74
- โ”‚ Your configuration โ”‚
75
- โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
76
- โ”‚ Output : repomeld_output.txt โ”‚
77
- โ”‚ Style : markdown โ”‚
78
- โ”‚ Extensions : php ts โ”‚
79
- โ”‚ Structure only : yes โœ… โ”‚
80
- โ”‚ Review graph : yes โœ… โ”‚
81
- โ”‚ Table of cont. : yes โ”‚
82
- โ”‚ Dry run : no โ”‚
83
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
61
+ repomeld_output.txt โ† first run
62
+ repomeld_output__2.txt โ† second run
63
+ repomeld_output__3.txt โ† third run
84
64
  ```
85
65
 
66
+ All previous output files are also **automatically excluded** from the next run's content โ€” so you'll never get repomeld's own output included inside itself.
67
+
86
68
  ---
87
69
 
88
- ## Skip the Wizard (Power Users)
70
+ ## All Options
71
+
72
+ ```
73
+ Usage: repomeld [options]
89
74
 
90
- If you pass any flags, repomeld skips the wizard and runs directly:
75
+ Options:
76
+ -V, --version Show version number
77
+ -h, --help Show help
91
78
 
92
- ```bash
93
- repomeld --ext ts tsx --style markdown --output context.md
79
+ Output:
80
+ -o, --output <filename> Output file name
81
+ Default: "repomeld_output.txt"
82
+ Auto-numbered if the file already exists.
83
+
84
+ Filtering:
85
+ -e, --ext <exts...> Only include files with these extensions
86
+ e.g. --ext js ts jsx tsx
87
+
88
+ --include <patterns...> Only include files whose path matches a pattern
89
+ e.g. --include src/
90
+
91
+ --exclude <patterns...> Skip files whose path matches a pattern
92
+ e.g. --exclude test spec __tests__
93
+
94
+ -i, --ignore <names...> Extra folder or file names to ignore
95
+ e.g. --ignore dist .next coverage
96
+
97
+ --force-include <names...> Force-include something that would normally be ignored
98
+ e.g. --force-include vendor bootstrap
99
+
100
+ --max-size <kb> Skip files larger than N kilobytes
101
+ Default: 500
102
+
103
+ --no-gitignore Ignore .gitignore file (include everything)
104
+
105
+ Formatting:
106
+ -s, --style <style> Header style for each file block:
107
+ banner โ€” clear dividers with file info (default)
108
+ markdown โ€” fenced code blocks, great for AI prompts
109
+ minimal โ€” filename only, no extra formatting
110
+
111
+ --no-toc Don't include a table of contents at the top
112
+
113
+ --no-meta Hide per-file metadata (line count, size, language)
114
+
115
+ --trim Trim leading/trailing whitespace from each file
116
+
117
+ Advanced:
118
+ --lines-before <n> Skip the first N lines of every file
119
+ --lines-after <n> Skip the last N lines of every file
120
+ --dry-run Preview which files would be included โ€” nothing is written
121
+ --no-backup Skip creating backup zip file
122
+ --no-update-check Skip checking for updates
94
123
  ```
95
124
 
96
- Force the wizard at any time with:
125
+ ---
126
+
127
+ ## Examples
97
128
 
98
129
  ```bash
99
- repomeld --wizard
130
+ # Basic โ€” include everything, auto-numbered output
131
+ repomeld
132
+
133
+ # Only TypeScript files
134
+ repomeld --ext ts tsx
135
+
136
+ # Only files inside src/
137
+ repomeld --include src/
138
+
139
+ # Skip test files
140
+ repomeld --exclude test spec __tests__
141
+
142
+ # Markdown style โ€” great for pasting into AI chats
143
+ repomeld --style markdown --output context.md
144
+
145
+ # Preview what would be included without writing anything
146
+ repomeld --dry-run
147
+
148
+ # Ignore extra folders on top of defaults
149
+ repomeld --ignore coverage logs tmp
150
+
151
+ # Respect gitignore (default) or ignore it
152
+ repomeld --no-gitignore # include everything
153
+
154
+ # Only small files โ€” skip anything over 100 KB
155
+ repomeld --max-size 100
156
+
157
+ # Force-include a vendor file that's normally ignored
158
+ repomeld --force-include bootstrap
159
+
160
+ # No table of contents, no metadata
161
+ repomeld --no-toc --no-meta
162
+
163
+ # Combine filters
164
+ repomeld --ext php --include Controllers --exclude test --style markdown
165
+
166
+ # Skip backup creation
167
+ repomeld --no-backup
100
168
  ```
101
169
 
102
170
  ---
103
171
 
104
- ## New Features in v1.2.0
172
+ ## Auto-Ignored by Default
105
173
 
106
- ### `--structure-only` โ€” Skeleton mode
174
+ repomeld automatically skips these so your output stays clean:
107
175
 
108
- Extracts **class names + function signatures** from every file. Strips all body code.
176
+ | Category | What's skipped |
177
+ |-----------------|-----------------------------------------------------|
178
+ | Dependencies | `node_modules/` |
179
+ | Version control | `.git/` |
180
+ | Env / secrets | `.env`, `.env.local`, `.env.production` |
181
+ | Lock files | `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml` |
182
+ | Build output | `dist/`, `build/`, `.next/`, `.nuxt/`, `.cache/` |
183
+ | OS files | `.DS_Store` |
184
+ | repomeld output | `repomeld_output.txt` and all `repomeld_output__N.txt` files |
109
185
 
110
- ```bash
111
- repomeld --structure-only
112
- ```
186
+ **Note:** `package.json` and `README.md` are **NOT** ignored by default โ€” they contain important context for AI tools and code reviews.
187
+
188
+ ---
189
+
190
+ ## Custom Ignore Rules
191
+
192
+ ### Method 1: repomeld.ignore.json
193
+
194
+ Create a `repomeld.ignore.json` in your project root:
113
195
 
114
- **Before** (400 lines of PHP):
115
- ```php
116
- public function available(Request $request)
196
+ ```json
117
197
  {
118
- $validated = $request->validate([...]);
119
- $guards = SecurityGuard::with('user')
120
- ->where('is_available', true)
121
- ...
122
- // 50 more lines
198
+ "ignore": [
199
+ "coverage",
200
+ "logs",
201
+ "tmp",
202
+ "*.min.js",
203
+ "**/generated/**"
204
+ ]
123
205
  }
124
206
  ```
125
207
 
126
- **After** (1 line):
127
- ```php
128
- public function available(Request $request) { ... }
129
- ```
130
-
131
- Supports **PHP, JavaScript, TypeScript, Python**. Other languages fall back to the first 30 lines.
208
+ These are merged with the defaults every time repomeld runs.
132
209
 
133
- Perfect for:
134
- - Giving AI a full architecture overview without hitting context limits
135
- - Code review focusing on structure, not implementation
136
- - Onboarding โ€” understand a codebase in seconds
210
+ ### Method 2: .gitignore
137
211
 
138
- ---
212
+ repomeld automatically respects your `.gitignore` file. Use `--no-gitignore` to override.
139
213
 
140
- ### `--review-graph` โ€” Mermaid call graph
214
+ ### Method 3: CLI --ignore
141
215
 
142
- Generates a **Mermaid flowchart** at the top of your output showing which files import/call which.
216
+ Override on the command line:
143
217
 
144
218
  ```bash
145
- repomeld --review-graph
219
+ repomeld --ignore temp logs "*.tmp"
146
220
  ```
147
221
 
148
- Output (inside the file, readable by AI natively):
222
+ ---
223
+
224
+ ## Backup Zip Files
225
+
226
+ When repomeld runs, it automatically creates a backup zip file in the `repomeld_repomeld/` folder:
149
227
 
150
- ````
151
- ```mermaid
152
- flowchart TD
153
- %% Code Review Graph โ€” generated by repomeld
228
+ ```
229
+ repomeld_output.txt
230
+ repomeld_repomeld/
231
+ โ””โ”€โ”€ repomeld_output.zip โ† contains all included files + output
154
232
 
155
- src_index_js["๐Ÿ“„ index.js\n[repomeld, getAllFiles, buildHeader]"]
156
- src_utils_js["๐Ÿ“„ utils.js\n[formatSize, getLanguage]"]
157
- src_graph_js["๐Ÿ“„ graph.js\n[buildReviewGraph]"]
233
+ repomeld_output__2.txt
234
+ repomeld_repomeld/
235
+ โ””โ”€โ”€ repomeld_output__2.zip โ† corresponding backup
158
236
 
159
- src_index_js --> src_utils_js
160
- src_index_js --> src_graph_js
237
+ repomeld_output__3.txt
238
+ repomeld_repomeld/
239
+ โ””โ”€โ”€ repomeld_output__3.zip โ† and so on...
161
240
  ```
162
- ````
163
241
 
164
- AI models like Claude, GPT-4, and Gemini read Mermaid natively โ€” no image needed.
242
+ The zip file contains:
243
+ - All source files included in the run (preserving folder structure)
244
+ - The repomeld output file itself
245
+
246
+ To disable backups: `repomeld --no-backup`
165
247
 
166
248
  ---
167
249
 
168
- ### Power combo: both together
250
+ ## Output Format
251
+
252
+ Each run produces a file like this:
169
253
 
170
- ```bash
171
- repomeld --structure-only --review-graph
172
254
  ```
255
+ # Generated by repomeld v2.0.4
256
+ # Date : 2025-04-23T10:00:00.000Z
257
+ # Source : /your/project
258
+ # Files : 12
259
+ # Lines : 847
173
260
 
174
- AI gets:
175
- 1. **The map** โ€” which files connect to which (graph)
176
- 2. **The skeleton** โ€” every class and function signature (structure)
177
- 3. **Zero noise** โ€” no implementation details
261
+ TABLE OF CONTENTS
262
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
263
+ 1. src/index.js
264
+ 2. src/utils.js
265
+ 3. src/config.js
266
+ ...
267
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
178
268
 
179
- This is the best way to give AI a complete understanding of a large codebase without wasting context.
269
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
270
+ FILE: src/index.js [120 lines | 3.2 KB | javascript]
271
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
180
272
 
181
- ---
273
+ ... file contents ...
274
+ ```
182
275
 
183
- ## Smart Auto-Ignore
184
-
185
- repomeld automatically skips common public libraries and vendor files.
186
-
187
- | Category | Examples |
188
- |---|---|
189
- | Project meta | `package.json`, `README.md`, `yarn.lock`, `.gitignore` |
190
- | Build output | `dist/`, `build/`, `.next/`, `.nuxt/`, `coverage/` |
191
- | Vendor folders | `vendor/`, `libs/`, `plugins/`, `assets/vendor/` |
192
- | Bootstrap | `bootstrap.min.css`, `bootstrap.bundle.min.js` |
193
- | jQuery | `jquery.min.js`, `jquery-ui.min.js` |
194
- | Font Awesome | `all.min.css`, `fontawesome-free/` |
195
- | Tailwind | `tailwind.min.css`, `tailwindcss/` |
196
- | Chart / D3 / Three | `chart.min.js`, `d3.min.js`, `three.min.js` |
197
- | Axios / Lodash | `axios.min.js`, `lodash.min.js` |
198
- | Rich text editors | `tinymce/`, `ckeditor/`, `codemirror/` |
199
- | Admin templates | `AdminLTE/`, `metronic/`, `coreui/` |
200
- | Env / Secrets | `.env`, `.env.local`, `.env.production` |
276
+ ### Markdown Style Example
201
277
 
202
- ---
278
+ With `--style markdown` each file becomes a fenced code block:
203
279
 
204
- ## All Options
280
+ ```markdown
281
+ ## ๐Ÿ“„ src/index.js [120 lines | 3.2 KB | javascript]
205
282
 
283
+ ```javascript
284
+ // Your code here
206
285
  ```
207
- Usage: repomeld [options]
208
286
 
209
- Options:
210
- -V, --version Show version
211
- -h, --help Show help
212
- --wizard Interactive step-by-step setup
213
-
214
- Output:
215
- -o, --output <filename> Output file name (default: "repomeld_output.txt")
216
-
217
- Filtering:
218
- -e, --ext <exts...> Only include specific extensions
219
- e.g. --ext js ts jsx tsx
220
- --include <patterns...> Only include files matching patterns
221
- e.g. --include src/
222
- --exclude <patterns...> Exclude files matching patterns
223
- e.g. --exclude test spec
224
- -i, --ignore <names...> Extra folders/files to ignore
225
- --force-include <names...> Force-include files ignored by default
226
- --max-size <kb> Skip files larger than N KB (default: 500)
227
-
228
- Formatting:
229
- -s, --style <style> Header style: banner | markdown | minimal
230
- --no-toc Disable table of contents
231
- --no-meta Hide file metadata (lines, size, lang)
232
- --trim Trim leading/trailing whitespace per file
233
-
234
- Advanced:
235
- --lines-before <n> Skip first N lines of each file
236
- --lines-after <n> Skip last N lines of each file
237
- --dry-run Preview without writing output
238
-
239
- AI / Code Review:
240
- --structure-only Extract class + function signatures only (no body)
241
- --review-graph Prepend a Mermaid call graph to the output
287
+ ## ๐Ÿ“„ src/utils.js [45 lines | 1.1 KB | javascript]
288
+
289
+ ```javascript
290
+ // More code here
291
+ ```
242
292
  ```
243
293
 
244
- ---
294
+ Perfect for pasting directly into Claude, ChatGPT, Cursor, or any AI tool!
245
295
 
246
- ## Examples
296
+ ### Minimal Style Example
247
297
 
248
- ```bash
249
- # Wizard mode (auto when no flags given)
250
- repomeld
298
+ With `--style minimal`:
251
299
 
252
- # Force wizard even with flags
253
- repomeld --wizard
300
+ ```
301
+ # src/index.js
302
+ your code here
254
303
 
255
- # Only PHP controllers, structure only
256
- repomeld --ext php --include Controllers --structure-only
304
+ # src/utils.js
305
+ more code here
306
+ ```
257
307
 
258
- # Full code + call graph
259
- repomeld --review-graph
308
+ ---
260
309
 
261
- # Best for AI: skeleton + graph, markdown style
262
- repomeld --structure-only --review-graph --style markdown --output ai_context.md
310
+ ## Performance
263
311
 
264
- # Only TypeScript inside src/
265
- repomeld --ext ts tsx --include src/
312
+ repomeld is optimized for large codebases:
313
+ - Async file scanning (non-blocking)
314
+ - Real-time progress indicator with ETA
315
+ - Memory-efficient streaming
316
+ - Handles repos with 10,000+ files easily
266
317
 
267
- # Exclude tests
268
- repomeld --exclude test spec __tests__
318
+ Example output:
319
+ ```
320
+ ๐Ÿ” Scanning files...
321
+ โœ… Found 2453 files in 1.2s
269
322
 
270
- # Dry run โ€” preview only
271
- repomeld --dry-run
323
+ ๐Ÿ“ Processing 2453 files...
272
324
 
273
- # Large repo: structure only, skip files over 100 KB
274
- repomeld --structure-only --max-size 100
325
+ [1245/2453] files (50.7%) | 2.3s elapsed | ETA: 2s
326
+ โœ… Completed 2453/2453 files in 4.7s
275
327
  ```
276
328
 
277
329
  ---
278
330
 
279
- ## Output Format
331
+ ## Use Cases
280
332
 
281
- ### With `--review-graph`
333
+ ### ๐Ÿค– AI Context Preparation
334
+ ```bash
335
+ repomeld --ext js ts jsx py --style markdown --max-size 200
336
+ ```
282
337
 
338
+ ### ๐Ÿ“‹ Code Review
339
+ ```bash
340
+ repomeld --include src/ --exclude test --style minimal --no-meta
283
341
  ```
284
- # Generated by repomeld v1.2.0
285
- # Date : 2024-01-01T00:00:00.000Z
286
- # Source : /your/project
287
- # Files : 8
288
- # Lines : 312
289
- # Graph : review-graph enabled
290
- # Author : susheelhbti@gmail.com (open to work)
291
342
 
292
- โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
293
- CODE REVIEW GRAPH
294
- โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
343
+ ### ๐Ÿ’พ Full Project Backup
344
+ ```bash
345
+ repomeld --force-include . --max-size 10000 --no-toc --no-meta
346
+ ```
295
347
 
296
- ```mermaid
297
- flowchart TD
298
- ...
348
+ ### ๐Ÿ“š Documentation Generation
349
+ ```bash
350
+ repomeld --ext md --include docs --style markdown --output documentation.md
299
351
  ```
300
352
 
301
- TABLE OF CONTENTS
302
- ...
353
+ ### ๐Ÿ” Debug Specific Feature
354
+ ```bash
355
+ repomeld --include feature-name --ext js css --output feature-context.txt
303
356
  ```
304
357
 
305
- ### With `--structure-only` (PHP example)
358
+ ---
306
359
 
307
- ```php
308
- namespace App\Http\Controllers;
309
- use App\Models\SecurityGuard;
310
- use App\Models\SecurityRequest;
360
+ ## FAQ
311
361
 
312
- class GuardController extends Controller
313
- {
314
- /** Get guard's own profile */
315
- public function profile() { ... }
316
- public function updateProfile(Request $request) { ... }
317
- public function bookings() { ... }
318
- public function available(Request $request) { ... }
319
- public function toggleAvailability() { ... }
320
- public function rate(Request $request, $id) { ... }
321
- }
322
- ```
362
+ **Q: Why are package.json and README.md included now?**
363
+ A: They were removed in early versions but added back because they provide essential context for AI tools and code reviewers.
364
+
365
+ **Q: How do I ignore package.json?**
366
+ A: Add it to `repomeld.ignore.json` or use `--ignore package.json`
367
+
368
+ **Q: Can I use this in CI/CD?**
369
+ A: Yes! Use `--no-update-check` and `--no-backup` for automated environments.
370
+
371
+ **Q: Does it work on Windows?**
372
+ A: Yes! Paths are normalized for cross-platform compatibility.
373
+
374
+ **Q: How do I get just the file list without content?**
375
+ A: Use `--dry-run` to preview without writing.
376
+
377
+ **Q: My binary files are being included?**
378
+ A: repomeld uses intelligent binary detection. If something slips through, use `--ext` to filter specific extensions.
323
379
 
324
380
  ---
325
381
 
326
- ## Publish / Update
382
+ ## Development
327
383
 
328
384
  ```bash
329
- npm version patch # 1.2.0 โ†’ 1.2.1
330
- npm publish
385
+ # Clone the repo
386
+ git clone https://github.com/susheel/repomeld.git
387
+ cd repomeld
388
+
389
+ # Install dependencies
390
+ npm install
391
+
392
+ # Run locally
393
+ npm start -- --dry-run
394
+
395
+ # Link for global testing
396
+ npm link
397
+ repomeld --help
331
398
  ```
332
399
 
333
400
  ---
334
401
 
335
402
  ## Contributing
336
403
 
337
- Found a popular library that should be in the ignore list? Open a PR!
404
+ Contributions are welcome! Please feel free to submit a Pull Request.
405
+
406
+ 1. Fork the repository
407
+ 2. Create your feature branch (`git checkout -b feature/amazing`)
408
+ 3. Commit your changes (`git commit -m 'Add some amazing feature'`)
409
+ 4. Push to the branch (`git push origin feature/amazing`)
410
+ 5. Open a Pull Request
411
+
412
+ ---
413
+
414
+ ## Changelog
415
+
416
+ ### v2.0.4 (Current)
417
+ - โœ… Added gitignore support with `ignore` package
418
+ - โœ… Added zip backup feature (`repomeld_repomeld/` folder)
419
+ - โœ… Added update notifications (non-intrusive)
420
+ - โœ… Improved performance with async operations
421
+ - โœ… Added progress indicator with ETA
422
+ - โœ… Fixed Windows path compatibility
423
+ - โœ… Improved binary detection
424
+ - โœ… Added force-include for override scenarios
425
+ - โœ… Removed `package.json` and `README.md` from default ignores
426
+
427
+ ### v1.0.0
428
+ - Initial release with basic functionality
338
429
 
339
430
  ---
340
431
 
341
432
  ## License
342
433
 
343
- MIT
434
+ MIT ยฉ [Susheel](mailto:susheelhbti@gmail.com)
435
+
436
+ ---
437
+
438
+ ## Support & Contact
439
+
440
+ - ๐Ÿ› **Issues**: [GitHub Issues](https://github.com/susheel/repomeld/issues)
441
+ - ๐Ÿ“ง **Email**: [susheelhbti@gmail.com](mailto:susheelhbti@gmail.com)
442
+ - ๐Ÿ’ผ **Hire Me**: Available for freelance and full-time opportunities
443
+
444
+ ---
445
+
446
+ > ## ๐Ÿ’ผ Hire the Author
447
+ > Built by a developer available for **freelance and full-time opportunities**.
448
+ > Got a project? Let's talk โ€” ๐Ÿ“ง **[susheelhbti@gmail.com](mailto:susheelhbti@gmail.com)**
449
+
450
+ ---
451
+
452
+ ## Star History
453
+
454
+ [![Star History Chart](https://api.star-history.com/svg?repos=susheel/repomeld&type=Date)](https://star-history.com/#susheel/repomeld&Date)
344
455
 
345
456
  ---
346
457
 
347
- > ๐Ÿ’ผ **Looking to hire?** The author [`susheelhbti@gmail.com`](mailto:susheelhbti@gmail.com) is available for freelance and full-time work.
458
+ **Made with โค๏ธ for developers who need better context for AI tools**