
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This gem is built to help at the migration between existing JSON files into the mappings of existing CSV tables and vice versa. To map the keys you provide a YAML file.
Add this line to your application's Gemfile:
gem 'json_csv_converter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install json_csv_converter
To convert the data of an existing JSON file into an existing CSV table just run JSONCSVConverter::json_to_csv
with the JSON path, the CSV path and the YAML mapping file path as arguments. This method returns a CSV::Table
.
The gem also provides an executable named json_csv_converter
. It currently only supports conversion from JSON to CSV.
If you run
$ json_csv_converter <i>path_to_json</i> <i>path_to_csv</i> <i>path_to_yaml_mapping</i>
you get the completely converted CSV table as String for further processing.
# create an instance to work with
converter = JSONCSVConverter::Converter.new(json_path,csv_path,mapping_path)
# map each JSON Object to a CSV row
converter.json_to_csv
# get the CSV table
csv_table = converter.csv_table
# get the JSON instance
json = converter.json
# Or simply run the toplevel method
csv_table = JSONCSVConverter.json_to_csv(json_path,csv_path,mapping_path)
FAQs
Unknown package
We found that json_csv_converter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.