Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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


TJ demo

## Installation

### go install

#### Go >= 1.17

```bash
go install github.com/cpendery/tj@latest
```
#### Go < 1.17

```bash
go get github.com/cpendery/tj
```