🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

data-to-export

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-to-export

base64数据导出,支持txt、doc、xls

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

使用步骤

import { tableToExcel } from "table-to-excel"

 <table id="tableId">
   <thead>
     <tr><th>表头1</th><th>表头2</th><th>表头3</th></tr>
   </thead>
   <tbody>
     <tr><td>数据1</td><td>数据2</td><td>数据3</td></tr>
   </tbody>
 </table>

tableToExcel(document.getElementById("tableId"), "导出的表格名称");

Keywords

base64数据

FAQs

Package last updated on 27 Mar 2025

Did you know?

Socket

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.

Install

Related posts