Skip to content
/ soul Public

Simple go CLI tool to convert csv files into JSON

Notifications You must be signed in to change notification settings

mustybatz/soul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soul


Soul is a CLI tool written in Go that transforms csv files into Json.

How to use

$ ./soul [options] <csvFilePath>

Example:

$ ./soul data.csv

The command above will create a data.json file at exactly the same dir location of data.csv

Options available

  • pretty: If enabled, it will create a well-formatted JSON file instead of a compact one.
  • separator: to indicate which character is used to separate cells. Only accepted options are comma (default) or semicolon.

Example using options:

$ ./soul --pretty --separator=semicolon data.csv

The command above will create a formatted data.json file at exactly the same dir location of data.csv The row columns from this file are separated using semicolons instead of commas.

Build

If you want to generate an executable for your platform, just run the following command, this tool is written using only standard lib packages, so no aditional installs are required.

$ go build

Tests

TDD was used to develop this utility, if you want to run the tests by yourself just run the following command:

go run

About

Simple go CLI tool to convert csv files into JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages