Bloggify / spreadsheet-parser

Parse spreadsheet files with ease.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spreadsheet-parser

Version Downloads

Parse spreadsheet files with ease.

☁️ Installation

# Using npm
npm install --save spreadsheet-parser

# Using yarn
yarn add spreadsheet-parser

πŸ“‹ Example

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)
})()

❓ Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. For bug reports and feature requests, open issues. πŸ›

πŸ“ Documentation

spreadsheetParser(filePath, opts)

Parse spreadsheet files with ease.

Params

  • Strings filePath: The spreadsheet file path.
  • Object opts: The options to pass to the processor.

Return

  • Promise<Array> A promise resolving the array content of the spreadsheet.

πŸ˜‹ How to contribute

Have an idea? Found a bug? See how to contribute.

πŸ“œ License

MIT Β© Bloggify

About

Parse spreadsheet files with ease.

License:MIT License


Languages

Language:JavaScript 100.0%