Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caarlos0/jsonfmt
Like gofmt, but for JSON files.
https://github.com/caarlos0/jsonfmt
formatter json
Last synced: 7 days ago
JSON representation
Like gofmt, but for JSON files.
- Host: GitHub
- URL: https://github.com/caarlos0/jsonfmt
- Owner: caarlos0
- License: mit
- Created: 2018-11-07T17:08:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-16T08:21:39.000Z (22 days ago)
- Last Synced: 2024-12-24T17:08:44.884Z (14 days ago)
- Topics: formatter, json
- Language: Go
- Homepage:
- Size: 147 KB
- Stars: 81
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# jsonfmt
Like `gofmt`, but for JSON files.
Usage: `jsonfmt` or `jsonfmt -w` to autofix the issues.
## Install
**homebrew**:
```sh
brew install caarlos0/tap/jsonfmt
```**docker**:
```sh
docker run -v $PWD:/data --workdir /data caarlos0/jsonfmt -h
```**apt**:
```sh
echo 'deb [trusted=yes] https://repo.caarlos0.dev/apt/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list
sudo apt update
sudo apt install jsonfmt
```**yum**:
```sh
echo '[caarlos0]
name=caarlos0
baseurl=https://repo.caarlos0.dev/yum/
enabled=1
gpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo
sudo yum install jsonfmt
```**deb/rpm**:
Download the `.deb` or `.rpm` from the [releases page][releases] and
install with `dpkg -i` and `rpm -i` respectively.**manually**:
Download the pre-compiled binaries from the [releases page][releases] or
clone the repo build from source.[releases]: https://github.com/caarlos0/jsonfmt/releases
## Stargazers over time
[![Stargazers over time](https://starchart.cc/caarlos0/jsonfmt.svg)](https://starchart.cc/caarlos0/jsonfmt)