
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
xlsx-preview
Advanced tools
Preview the .xlsx in the browser, convert to HTML with styles. The dependencies of this package is exceljs, it build the pretty preview by exceljs. And it can run in a Worker.
Jump to the demo page
npm install xlsx-preview
or
yarn add xlsx-preview
const xlsxPreview = require('xlsx-preview');
import xlsxPreview from 'xlsx-preview';
Before import xlsxPreview.js on browser, you need import excel.js first.
<script src="exceljs.js"></script>
<script src="xlsxPreview.js"></script>
// ...
const result = await xlsxPreview.xlsx2Html(data, options);
The data can be one of the types, ArrayBuffer, Blob, or File.
The options is optional.
export interface XlsxOptions {
output?: "string" | "arrayBuffer";
separateSheets: boolean;
minimumRows: number;
minimumCols: number;
}
options.output: default "string", set the output format, string or ArrayBuffer.separateSheets: default false, whether the worksheets needs to be separated.
separateSheets: true, the result will be an Array.minimumRows: default 20, Regardless of whether the worksheet has enough rows, the minimum number of rows generated.minimumCols: default 16, Regardless of whether the worksheet has enough cols, the minimum number of cols generated.FAQs
Preview the .xlsx in the browser, convert to HTML with styles.
The npm package xlsx-preview receives a total of 1,766 weekly downloads. As such, xlsx-preview popularity was classified as popular.
We found that xlsx-preview demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.