1.1.0 • Published 5 years ago

csv-parser-sync-plus-promise v1.1.0

Weekly downloads
82
License
ISC
Repository
github
Last release
5 years ago

Description:

csv-parser-sync-plus-promise

A csv parser to read csv synchronously or as promise and converts it to an array of properties

Features

now read any csv synchronously or as promise. Choice is yours

This npm csv parser reads csv files synchronously or as a promise to an array

Reading csv synchronously was always hectic, but now its easier and faster.

Demo CSV:

a,b,c
1,2,3
1,5,6
2,4,6

Output Array

[ { a: '1', b: '2', c: '3' },
  { a: '1', b: '5', c: '6' },
  { a: '2', b: '4', c: '5' } ]

Usage

	let parser = require('csv-parser-sync-plus-promise')

for use as sync

	let a=parser.readCsvSync('<filepath>')

for use as promise

	let b=parser.readCsvPromise('<filepath>')

Note: You can use both fully qualified and relative paths

Errors

All errors will be printed as console.error and the process will exit with exit code 222

1.1.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago