Add support for Microsoft Excel
See original GitHub issueIs 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:
- Created 2 years ago
- Reactions:5
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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 usesextendParser
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