-
-
Notifications
You must be signed in to change notification settings - Fork 939
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Allow running external commands on files before packing, enabling transformations like JSON to TOON format conversion.
Configuration Example
{
"fileProcessors": {
"**/*.json": "npx @toon-format/cli {file}"
}
}Implementation
- Match files with glob patterns
- Write content to temp file, replace `{file}` placeholder
- Execute command and capture stdout
- Use transformed output in packed result
Use Cases
- JSON to TOON format (token reduction for LLMs)
- SVG minification
- Custom file preprocessing
Related
- TOON format: https://github.com/toon-format/toon
- Discord discussion: https://discord.com/channels/1324644561959522314/1324644562429542425/1434811514937802802
DevGuyRash, Benexl and temrbtrombini77
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request