Skip to content

text2xml is a CLI tool designed to streamline the process of preparing text documents for large language model (LLM) prompts.

License

Notifications You must be signed in to change notification settings

jiahan-wu/swift-text-to-xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text2xml

text2xml is a CLI tool designed to streamline the process of preparing text documents for large language model (LLM) prompts, particularly for models with extended context windows like Claude 3.

Usage

text2xml <input-path> [--types <types>] [--recursive] [--include-hidden] [--trim] [--output-path <output-path>]

ARGUMENTS:
  <input-path>            The input file or directory path to convert to XML.

OPTIONS:
  -t, --types <types>     Comma-separated list of file extensions to process (e.g., 'txt,md,swift'). If not specified, all files will be
                          processed.
  -r, --recursive         Recursively process subdirectories when the input is a directory.
  --include-hidden        Include hidden files when processing directories.
  --trim                  Trim whitespace and newlines from the beginning and end of the content.
  -o, --output-path <output-path>
                          The output file path. If not specified, output will be printed to stdout.
  --version               Show the version.
  -h, --help              Show help information.

References

License

swift-text-to-xml is released under the MIT License. See the LICENSE file for more information.

About

text2xml is a CLI tool designed to streamline the process of preparing text documents for large language model (LLM) prompts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages