GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - baltimore-sun-data/csv2json: Simple tool for converting CSVs to JSON

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 

Repository files navigation

csv2json

Simple tool for converting CSVs to JSON

Installation

First install Go.

If you just want to install the binary to your current directory and don't care about the source code, run

GOBIN=$(pwd) GOPATH=$(mktemp -d) go get github.com/baltimore-sun-data/csv2json

Usage

$ csv2json
Usage of csv2json:
  -dest string
        Destination file (default: stdout)
  -no-headers
        Return each row as an array
  -src string
        Source file (default: stdin)

$ more test.csv
a,b,c
1,2,3

$ csv2json | json-tidy
[
        {
                "a": "1",
                "b": "2",
                "c": "3"
        }
]

$ csv2json -src test.csv -no-headers | json-tidy
[
        [
                "a",
                "b",
                "c"
        ],
        [
                "1",
                "2",
                "3"
        ]
]

About

Simple tool for converting CSVs to JSON

Topics

command-line-toolcsvgogolangjson

Resources

Readme
MIT license
Activity
Custom properties

Stars

6 stars

Watchers

6 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.