Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cpendery/tj
Command-line JSON converter
https://github.com/cpendery/tj
Last synced: about 2 months ago
JSON representation
Command-line JSON converter
- Host: GitHub
- URL: https://github.com/cpendery/tj
- Owner: cpendery
- License: apache-2.0
- Created: 2022-10-13T03:41:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-23T20:02:21.000Z (about 2 years ago)
- Last Synced: 2024-10-26T00:28:31.426Z (2 months ago)
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tj
[![Go Reference](https://pkg.go.dev/badge/github.com/cpendery/tj.svg)](https://pkg.go.dev/github.com/cpendery/tj)
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/cpendery/tj/blob/main/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/cpendery/tj)](https://goreportcard.com/report/github.com/cpendery/tj)
[![DeepSource](https://deepsource.io/gh/cpendery/tj.svg/?label=active+issues&token=8VshTmdUAST1NhAninW7LHCY)](https://deepsource.io/gh/cpendery/tj/?ref=repository-badge)## The universal converter to JSON
tj is a lightweight command-line processor for converting configurations into JSON. Designed to be [jq](https://github.com/stedolan/jq)'s other half, it can convert from to following into JSON:
- `csv` ([CSV](https://www.rfc-editor.org/rfc/rfc4180) Table)
- `toml` ([TOML](https://toml.io/en/v1.0.0))
- `xml` ([XML](https://www.rfc-editor.org/rfc/rfc5364))
- `yaml` ([YAML](https://yaml.org/spec/1.2.2/))
## Installation
### go install
#### Go >= 1.17
```bash
go install github.com/cpendery/tj@latest
```
#### Go < 1.17```bash
go get github.com/cpendery/tj
```