https://github.com/laughing-nerd/jdf
JSON Detect and Format (inspiration: jq)
https://github.com/laughing-nerd/jdf
cli-tool json-formatter
Last synced: 3 months ago
JSON representation
JSON Detect and Format (inspiration: jq)
- Host: GitHub
- URL: https://github.com/laughing-nerd/jdf
- Owner: laughing-nerd
- Created: 2024-08-08T19:36:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-11T23:19:31.000Z (6 months ago)
- Last Synced: 2025-12-13T04:35:54.876Z (6 months ago)
- Topics: cli-tool, json-formatter
- Language: Go
- Homepage:
- Size: 33.9 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jdf - JSON Detect and Format
As the name suggests, this tool detects and formats JSON data that is piped into into it
Example:
```bash
devspace dev | jdf
```
This will take the logs from devspace and format any JSON data within them in a nice way!
If you want to pretty print the JSON data stored in a file, you can do so by running the following command:
```bash
cat file.json | jdf
```
# Installation
### Quick Install (Recommended)
```bash
bash <(curl -fsSL https://raw.githubusercontent.com/laughing-nerd/jdf/main/install.sh)
```
### Install Specific Version (only works for versions >= v1.4.0)
```bash
bash <(curl -fsSL https://raw.githubusercontent.com/laughing-nerd/jdf/main/install.sh) v1.4.0
```
### Manual Download
Download the binary for your platform from the [Releases](https://github.com/laughing-nerd/jdf/releases) page.
### Build from Source
```bash
git clone https://github.com/laughing-nerd/jdf.git
cd jdf
make build-all
```
# Motivation
I was tired of dealing with the messy devspace logs, so I built this tool based on a colleague's suggestion. It might have some bugs, but it gets the job done effectively! What more can you expect from a tool created in just a couple of hours? XD
# Tests
Todo //🚧