New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simplejson2csv

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplejson2csv

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Simplejson2csv

This command-line-tool was designed to EASILY convert JSON to CSV. You can set which fields (keys) you want to output! You can choose which separator you want!

Purpose: I did a grep in a bunch of log files with different JSON's formats. So I needed to parse then and choose just a few fields that were relevant. I wrote a simple ruby file to do this job and I thought: "Hmm, why would I publish this on RubyGems?... A: Why not?"

Installation

Just install it:

$ gem install simplejson2csv

Usage

Help:

$ simplejson2csv help convert

Convert:

$ simplejson2csv convert --json=tmp/sample.json --csv=tmp/sample-output.csv
--fields="foo bar" --separator="|"

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/walbinjr/simplejson2csv.

FAQs

Package last updated on 18 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc