An open API service indexing awesome lists of open source software.

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)

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 //🚧