Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dex4er/cvs2json.pl

Stream and CLI to convert CSV to JSON
https://github.com/dex4er/cvs2json.pl

Last synced: 11 days ago
JSON representation

Stream and CLI to convert CSV to JSON

Awesome Lists containing this project

README

        

# SYNOPSIS

**cvs2json** -h|--help

**csv2json**
\[-s _separator_|--separator=_separator_\]
\[-t|--tsv\]
\[_input-file_
\[_output-file_\]\]

# README

**csv2json** converts CSV stream to JSON.

# OPTIONS

- -s _separator_|--separator=_separator_

Specify a field separator. Comma "`,`"" is the default.

- -t|--tsv

Specify TAB as a field separator.

- _input-file_

The input file name. `STDIN` stream is the default.

- _output-file_

The output file name. `STDOUT` stream is the default.

# PREREQUISITES

- [JSON](https://metacpan.org/pod/JSON)

# SCRIPT CATEGORIES

Text\_Processing/Filters

# AUTHORS

Piotr Roszatycki

# LICENSE

Copyright 2016 by Piotr Roszatycki .

Inspired by https://www.npmjs.com/package/csv2json by Julien Fontanet.

All rights reserved. This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License, the
latest version.