Table2excel
text and image save to excel
Install / Use
/learn @hxj9102/Table2excelREADME
table2excel
text and image save to excel
Installation
npm install js-table2excel
Usage
import table2excel from 'js-table2excel'
const column = [
{
title: '宠物',
key: 'name',
},
{
title: '图例',
key: 'pic',
type: 'image',
}
]
const data = [
{
name: 'dog',
pic: 'https://t7.baidu.com/it/u=848096684,3883475370&fm=193&f=GIF',
size: [100, 60], // image size for picture
},
{
name: 'cat',
pic: 'https://t7.baidu.com/it/u=2272690563,768132477&fm=193&f=GIF',
}
]
const excelName = '爱宠'
const captionName = '爱宠一览图'
table2excel({
column,
data,
excelName,
captionName: '爱宠列表',
})
// you can also use
// table2excel(column, data, excelName, captionName)
table2excel options
| | type | default | | ----------- | ------ | ------- | | column | Array | [] | | data | Array | [] | | excelName | String | - | | captionName | String | - |
column options
| | introduction | type | default | | ----- | --------------- | ------ | ------- | | title | name for column | String | - | | key | key for column | String | - | | type | text|image | String | text |
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
