1.3.8 • Published 7 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
7 years ago
1.3.7
7 years ago
1.3.6
7 years ago
1.3.5
7 years ago
1.3.4
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.2.9
7 years ago
1.2.8
7 years ago
1.2.7
7 years ago
1.1.7
7 years ago
1.1.6
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago