1.3.8 • Published 5 years ago
xlsx2js v1.3.8
Install
npm i xlsx2js -S
#Usage
<input type="file" accept=".xlsx,.xls" onchange="read(file)" />
import xlsx2js from "xlsx2js";
async read(e) {
let exl = e.target.files[0];
// input -> e.target.files is an array,Here i chose the first table,If you want transform more tables , I don't care.
if (!exl) {
return false;
} else if (!/\.(xls|xlsx)$/.test(exl.name.toLowerCase())) {
throw new Error("Please chose the .xlsx or .xlx file");
return false;
}
let output = await xlsx2js(exl);
console.log(output);
},
License
MIT @zhuyuhao
1.3.8
5 years ago
1.3.7
5 years ago
1.3.6
5 years ago
1.3.5
5 years ago
1.3.4
5 years ago
1.3.2
5 years ago
1.3.1
5 years ago
1.2.9
5 years ago
1.2.8
5 years ago
1.2.7
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago