Latest 1.1
License MIT
Platforms osx 10.9, ios 8.0
Dependencies JSLogger


A simple CSV parser written in Swift that implements RFC 4180. It reads and parses data efficiently line by line so that it can work with large files.


  1. Install using Cocopoads
pod 'JSCSVParser'
  1. Import the module and create an instance
import JSCSVParser
let parser = CSVParser()
  1. Set the full file path in the parser
parser.setFilePath(path: path)
  1. Parse each line until the end of file is reached
var tokens: [[String]] = []
while parser.hasNext() {

tokens will contain each comma separated word for each line in an array.

  1. Once done with the file, it needs to be closed

For more details, please check the test cases.

Latest podspec

    "name": "JSCSVParser",
    "version": "1.1",
    "license": "MIT",
    "summary": "An efficient CSV parser implementing RFC 4180",
    "homepage": "",
    "authors": {
        "jsloop": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1"
    "documentation_url": "",
    "platforms": {
        "osx": "10.9",
        "ios": "8.0"
    "source_files": "CSVParser/*.swift",
    "swift_versions": [
    "dependencies": {
        "JSLogger": []

Pin It on Pinterest

Share This