Skip to content

rnemeth90/csv2json

Repository files navigation

csv2json build-release-binary Go Report Card

Description

csv2json is a program that can parse csv files to json. This program follows the Unix philosophy in that it has a very concise purpose. Because of this, the json is sent to stdout, to be consumed by another program in whatever way you see fit.

Getting Started

Dependencies

  • to build yourself, you must have Go v 1.13+ installed

Installing

go install github.com/rnemeth90/csv2json@latest

Or download the latest release here

Executing program

./csv2json example.csv

# Or read from stdout:
wget -qO- https://raw.githubusercontent.com/rnemeth90/csv2json/main/example.csv | csv2json

Help

If you need help, submit an issue

To Do

  • Read csv input from stdout (sent from another program)
  • Add automated builds for binary distribution
  • add cli args
  • update usage()

Version History

  • 0.3
    • Rewrite algorithm for conversion
  • 0.2
    • Various bug fixes and optimizations
  • 0.1
    • Initial Release

License

This project is licensed under the MIT License - see the LICENSE.md file for details