c2j

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 6 Imported by: 0

README

C2J

A simple command line for convert csv into an array of json

Install

Building from Source

With Go 1.17 or higher:

go install github.com/edermanoel94/c2j
Usage
Convert

To convert, run the c2j command to read from stdin, using standard delimiter, which is comma.

$ cat example_comma.csv | c2j
Convert with custom delimiter

Use the --delimiter or -d flag to specify a delimiter.

$ cat example_semicolon.csv | c2j --delimiter ";"
Demo

Demonstration

Todo

  • Use a path argument to convert

Contributing

Pull requests for new features, bug fixes, and suggestions are welcome!

License

MIT

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