bat -l json package.json

Category: Web App Development

bat -l json package.json

View a file with an explicit language theme

Renders package.json with JSON syntax highlighting, overriding bat's auto-detection. The -l flag forces the language, handy for extensionless or misdetected files. Combine with --line-range 1:20 to view a slice.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.