
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
A Ruby library providing a comprehensive set of utilities for manipulating and processing CSV files. This library offers a robust set of tools for comparing, transforming, sorting, and managing CSV data efficiently.
Add this line to your application's Gemfile:
gem 'csv-utils'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install csv-utils
require 'csv_utils'
comparator = CSVUtils::CSVCompare.new('primary.csv', ['updated_at']) do |src, dest|
src['id'] <=> dest['id']
end
comparator.compare('secondary.csv') do |action, record|
case action
when :create
puts "Create: #{record}"
when :update
puts "Update: #{record}"
when :delete
puts "Delete: #{record}"
end
end
sorter = CSVUtils::CSVSort.new('input.csv')
sorter.sort('output.csv', ['id', 'name'])
transformer = CSVUtils::CSVTransformer.new('input.csv')
transformer.transform('output.csv') do |row|
# Transform row data
row['new_column'] = row['old_column'].upcase
row
end
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests.
Bug reports and pull requests are welcome on GitHub at https://github.com/yourusername/csv-utils.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that csv-utils demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.