csv-to-array-browser
module works for browsers. You can use it in any of your frontend projects.
npm i sheet-to-array-browser
// import the package into your project
import SheetToArray from 'sheet-to-array-browser';
// get the csv file
const file = event.target.files[0]
// convert the sheet/excel file into JavaScript array
const convertedData = await SheetToArray(file)