Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.
/ json-csv Public archive

A customizable JSON/CSV converter for the command line

Notifications You must be signed in to change notification settings

appcues/json-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-csv

A command-line utility and Ruby gem for converting JSON files to CSV, and CSV files to JSON (soon).

Install it

You can install json-csv as a Ruby Gem:

gem imstall json-csv

Or as a standalone command-line script:

# Systemwide install
curl https://raw.githubusercontent.com/appcues/json-csv/master/lib/json_csv.rb | sudo tee /usr/local/bin/json-csv >/dev/null
sudo chmod a+x /usr/local/bin/json-csv

# Single-user install
curl https://raw.githubusercontent.com/appcues/json-csv/master/lib/json_csv.rb > json-csv
chmod +x json-csv

Run json-csv -h to see execution options.

Why json-csv?

  • Customizable: Max nested data depth, line endings, etc

  • CSV output is sorted by depth and alphabet

  • Zero dependencies outside core Ruby 2.x

  • Easy install

Authorship and License

json-csv is copyright 2017, Appcues, Inc.

This code is released under the [https://opensource.org/licenses/MIT](MIT License).

About

A customizable JSON/CSV converter for the command line

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages