Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hopcsv

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hopcsv

  • 0.4.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Hopcsv

A pure-C CSV parser.

== Installation

gem install hopcsv

== Usage

require 'rubygems' require 'hopcsv'

Hopcsv.foreach("data.csv") do |line| # Do something with the line array end

Hopcsv.foreach("/etc/passwd",":") do |line| puts line[0] end

== Advanced usage

Get users from passwd file, with UIDs between 1000 and 1010 and between 2000 and 2010. Works with numbers only! Third argument is column index, then one or more intervals.

Hopcsv.foreach("/etc/passwd",":",2,[1000..1010],[2000..2010]) do |line| puts line[0] end

== Contacts

Forks, pull-requests and other contacts via guthub: https://github.com/zhum/hopcsv

== License

Copyright 2012 Sergey Zhumatiy

Copyright 2007-2012 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.

FAQs

Package last updated on 02 Dec 2013

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