fon

command module
v0.0.0-...-9b013a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2023 License: MIT Imports: 7 Imported by: 0

README

fon

json flattener

Usage

ishmeets@mbp % cat test.json | ./fon
age: 30.000000
address.city: New York
address.state: NY
address.zip: 10001.000000
phone[0].type: home
phone[0].number: 555-1234
phone[1].type: work
phone[1].number: 555-5678
name: John
ishmeets@mbp % ./fon test.json 
age: 30.000000
address.city: New York
address.state: NY
address.zip: 10001.000000
phone[0].type: home
phone[0].number: 555-1234
phone[1].number: 555-5678
phone[1].type: work
name: John

Installation

fon has no runtime dependencies. You can just download a binary for Linux, Windows or Freebsd and run it. Put the binary in the $PATH (e.g. in /usr/local/bin) to make it easy to use:

▶ tar xzf fon-linux-amd64-v0.0.tgz
▶ sudo mv fon /usr/local/bin/

Or if you are a go user, you can install using

go install github.com/Ishmeet/fon@latest

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL