Parse spreadsheet files with ease.
# Using npm
npm install --save spreadsheet-parser
# Using yarn
yarn add spreadsheet-parser
const SpreadsheetParser = require("spreadsheet-parser");
(async () => {
const content = await SpreadsheetParser(`${__dirname}/sample.xlsx`)
console.log(content)
const csvContent = await SpreadsheetParser(`${__dirname}/sample.csv`, {
headers: true
})
console.log(csvContent)
})()
There are few ways to get help:
- Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
- For bug reports and feature requests, open issues. 🐛
Parse spreadsheet files with ease.
- Strings
filePath
: The spreadsheet file path. - Object
opts
: The options to pass to the processor.
- Promise<Array> A promise resolving the array content of the spreadsheet.
Have an idea? Found a bug? See how to contribute.