# dir2txt
> Export directory structure and contents into formatted .txt or .json files

## Summary
Fast CLI tool that exports directory structures and file contents to formatted text or JSON files.

## Capabilities
- Export directory structure to text
- Export file contents alongside structure
- Output in .txt or .json format

## When to Use
- You need to document a project's directory structure
- You want to export codebase contents for context

---
Source: https://littlescripts.sh/tools/dir2txt
