1.0.9 • Published 3 years ago

csv-to-array-browser v1.0.9

Weekly downloads
36
License
ISC
Repository
-
Last release
3 years ago

CSV to Array for Javascript/browsers

csv-to-array-browser module works for browsers. You can use it in any of your frontend projects.

How to Install

npm i csv-to-array-browser

Example Usage

// import the package into your project
import CSVToArray  from 'csv-to-array-browser';

// get the csv file
const file = event.target.files[0]

// convert the csv file into JavaScript array
const convertedData = await CSVToArray(file)

delimiter (optional)

CSVToArray takes two paramaters: file and delimiter (optional). The default delimiter is ','.

// delimeter is $
const convertedData = await CSVToArray(file, '$')

Want to convert Google sheet or excel sheet to JavaScript Array? Try sheet-to-array-browser

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago