Download Latest Version yj v5.1.0 source code.zip (34.4 kB)
Email in envelope

Get an email when there's a new version of yj

Home / v5.0.0
Name Modified Size InfoDownloads / Week
Parent folder
yj-linux-arm64 2020-09-21 4.4 MB
yj-linux-arm-v7 2020-09-21 4.1 MB
yj-linux-arm-v5 2020-09-21 4.1 MB
README.md 2020-07-25 1.1 kB
yj v5.0.0 source code.tar.gz 2020-07-25 17.7 kB
yj v5.0.0 source code.zip 2020-07-25 33.5 kB
yj.exe 2020-07-25 4.9 MB
yj-macos 2020-07-25 4.8 MB
yj-linux 2020-07-25 4.8 MB
Totals: 9 Items   27.0 MB 0

Changes

  • Conversions between all formats now preserve map order.
  • The -t flag now parses/emits TOML v1.0.0-rc.1 instead of v0.4.0.
  • The -v flag now prints the version of yj (#9).
  • YAML conversions now parse/emit floats unambiguously (#3).
  • The -n flag is now enabled by default when converting between formats that both support NaN, Inf, etc.

Notes

  • YAML now uses gopkg.in/yaml.v3 instead of gopkg.in/yaml.v2.
  • TOML now uses github.com/pelletier/go-toml instead of github.com/BurntSushi/toml.
  • For most formats, preserving map order required manually parsing the AST of the various data format libraries. This change improved other formatting issues, such as the ambiguity of floats in YAML. However, it also increased the complexity of yj significantly -- please report bugs!

Installation

Available for macOS via Homebrew:

$ brew install yj

Binaries for Linux, macOS, and Windows are attached below.

Alternatively, you may also install yj via go get:

$ go get github.com/sclevine/yj
Source: README.md, updated 2020-07-25