@travisennis/acai-file-prompt
v0.0.2
Published
A commmand-line tool for reading text files and generating prompts.
Downloads
11
Readme
@travisennis/acai-file-prompt
Installation & Usage
Install and run with npx:
npx @travisennis/acai-file-promptOr install globally:
npm install -g @travisennis/acai-file-prompt
acai-file-promptUsage
This tool reads text files and generates prompts from them using glob patterns.
Command Line Arguments
acai-file-prompt -f <format> "glob/pattern/**/*.txt" [pattern2 ...]-f, --format: Output format (required)xml: Wrap files in XML tagsmarkdown: Format as markdown code blocksbracket: Use bracket-style delimiters
patterns: One or more glob patterns to match files
Examples
# Process all TypeScript files in src directory
acai-file-prompt -f markdown "src/**/*.ts"
# Process multiple file types
acai-file-prompt -f xml "src/**/*.js" "src/**/*.ts" "src/**/*.json"
# Process all files in current directory
acai-file-prompt -f bracket "**/*"The tool will:
- Scan for files matching your patterns
- Show file count and estimated token count
- Ask for confirmation before proceeding
- Prompt you to choose output method (clipboard or file)
- Generate the formatted output
