Skip to content

NewmanJustice/RepoToXML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RepoToXML

This is a Node.js terminal application and CLI tool that converts a GitHub repository (public or private) or a local repository to a single XML or TXT file for LLM input.

Features

  • Clone from GitHub (supports authentication for private repos) or use a local path (interactive mode)
  • Outputs a single XML or TXT file with the full contents of each file
  • Default exclusion list (node_modules, .git, etc.)
  • XML output follows a standardized schema (interactive mode)
  • Global CLI: Flatten any directory to a single repo.txt file with no prompts
  • Skips binary files and large files by default

Installation (Global CLI)

npm install -g .

Usage

Non-interactive (flatten current directory to TXT)

From any directory:

repotoxml --flat
# or
repotoxml -f
  • Recursively collects all text/code files (skipping hidden/system folders)
  • Outputs a single repo.txt file in the current directory
  • No prompts or interaction

Interactive mode

From any directory:

repotoxml
  • Choose between flattening the directory or using the interactive workflow
  • Interactive workflow allows cloning GitHub repos, custom exclusions, XML/TXT output, and more

You can also run locally with:

npm install
node index.js

Follow the prompts to select your repo and output options.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors