Skip to content

Tools to copy code forces to the clipboard or generate files by concatenating them into one for loading into the LLM

License

Notifications You must be signed in to change notification settings

tanabe1478/ts_concat_codes

Repository files navigation

ConcatCodes

Usage

# Output to stdout (you can redirect to a file)
npx ts-node concat_code.ts path/to/dir1 path/to/dir2 > all_code.md

# Or specify an output file directly
npx ts-node concat_code.ts path/to/dir1 path/to/dir2 -o merged_output.md

# For macOS: copy directly to clipboard
npx ts-node concat_code.ts path/to/dir1 path/to/dir2 | pbcopy

Notes

Make sure that directories contain .gitignore files if you want to exclude certain files. If you see any unreadable characters or binary data, consider filtering by file extension or adjusting .gitignore rules. This tool is primarily tested on macOS.

License

MIT License. Feel free to use and modify.

About

Tools to copy code forces to the clipboard or generate files by concatenating them into one for loading into the LLM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published