node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

lcsv-parser

node-lcsv-parser

npm version Build Status

A parser of key value pairs encoded in 'labeled' CSV format.

Installation

Install with npm:

npm install coffee-script -g
npm install lcsv-parser --save

Example

var parser = require('lcsv-parser');
parser.single('key1:value1, key2:value2')
  .then(function (obj) { console.log(obj) });
=> { key1: 'value1', key2: 'value2' }

See more examples in ./test/*_test.coffee