@goon-format/cli
v1.0.4
Published
CLI for GOON (Greatly Optimized Object Notation) - Convert JSON to ultra-compact GOON format
Downloads
507
Maintainers
Readme
🦍 GOON CLI
Command-line interface for GOON (Greatly Optimized Object Notation).
Installation
npm install -g @goon-format/cliUsage
# Convert JSON to GOON
echo '{"users":[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]}' | goon
# Convert a file
goon data.json
# Compare formats (shows token savings)
goon data.json --compare
# Validate GOON syntax
goon data.goon --validate
# Show token statistics
goon data.json --stats
# Process multiple files
goon --batch file1.json file2.json file3.jsonOutput Example
$ echo '{"users":[{"id":1,"name":"Alice","active":true},{"id":2,"name":"Bob","active":false}]}' | goon
users[2]{id,name,active}:
1,Alice,T
2,Bob,FCompare Mode
$ goon data.json --compare
┌─────────┬────────┬─────────┐
│ Format │ Tokens │ Savings │
├─────────┼────────┼─────────┤
│ JSON │ 156 │ - │
│ GOON │ 98 │ 37.2% │
└─────────┴────────┴─────────┘Links
- @goon-format/goon - Core library
- GitHub
- Documentation
License
MIT
