I've found many ways to read and write files but I didn't find a way to open my local excel... How do I do that?
CodePudding user response:
It's hard to answer without knowing what you are trying to do. Are you trying to open an Excel file in your IDE? Or just show an Excel file on a webpage written in Javascript? I'm not sure what "opening a file in Javascript" really means here.
CodePudding user response:
You can use SheetJS (which is free) : https://github.com/SheetJS/sheetjs
Import
const XLSX = require("xlsx");
Open and read file
const workbook = XLSX.readFile("test.xlsx");