question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Microsoft Excel

See original GitHub issue

Is your feature request related to a problem? Please describe.

Not able to parse excel files!

Describe the solution you’d like

Add support for an excel parser like https://github.com/SheetJS/sheetjs to also support xlsx

Something like: await this.$content(excel).only([sheet]).fetch()

Describe alternatives you’ve considered

  • Export all seperate tabs as csv and import with ‘content’ as array of objects
  • Parse with a server api

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
itproprocommented, Jan 15, 2022

To be honest, I think supporting a proprietary format that is very uncommon in web development compared to one of the most common file/media format would not really help the module. This would basically mean that the project could be bloated with parsers for countless spreadsheet/table formats. The much more straight forward approach would be to convert your data from xls/xlsx/csv to json and let nuxt content do the rest. JSON is the widest and most optimized format for the usecase of nuxt content, which is providing a file system based database to query from. Think of some kind of minimal filesystem based MongoDB implementation.

2reactions
SheetJSDevcommented, May 9, 2022

In case you need inspiration, our VueJS demo includes a neat example

https://user-images.githubusercontent.com/6070939/157599532-e3978b11-c4be-4873-a2a3-e02e68ad0c3b.mp4

The index.vue page is not particularly interesting (it really should just reuse a CSV example)

The nuxt.config.js file uses extendParser to listen to a number of file formats. It generates an array of JS objects per worksheet.

A sample file can be placed in the content folder

Read more comments on GitHub >

github_iconTop Results From Across the Web

Excel help & learning - Microsoft Support
Find Microsoft Excel help and learning resources. Explore how-to articles, guides, training videos, and tips to efficiently use Excel.
Read more >
Get an Office Add-in for Excel - Microsoft Support
To start using your add-in with Excel, double-click it in the add-ins list. Click Insert > My Add-ins. Tip: You can also click...
Read more >
Get expert help, 24/7 - Microsoft Support
Get expert help, 24/7. Illustration showing two experts helping someone. Have our partners at Excelchat fix your formulas for free.
Read more >
Basic tasks in Excel - Microsoft Support
Get started with basic tasks in Excel such as opening a workbook, entering and formatting data, calculating data, and trying some quick analysis...
Read more >
Add or remove add-ins in Excel - Microsoft Support
In the Manage box, click Excel Add-ins, and then click Go. The Add-Ins dialog box appears. In the Add-Ins available box, select the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found