JSPM

csv-to-object

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q20078F
  • License MIT

Read a dilimted data file and turn it into a javascript object

Package Exports

  • csv-to-object

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (csv-to-object) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

csv-to-object

transform a (c)sv file into a javascript object.

You can use a dilemeter and a text qualifier.

Example Usage

var testString = [
    'h1|h2|h3|h4', // The first line will be the headers
    'value 1|"Value 2"|value 3|"value - 5"'// This is the first row of data
];
csvToObject({
    dilemeter: '|',
    textQualifier: '"',
    string: testString.join('\n')
});