
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@thtf/excel
Advanced tools
A web-based JavaScript spreadsheet
<link
rel="stylesheet"
href="https://unpkg.com/x-data-spreadsheet@1.0.13/dist/xspreadsheet.css"
/>
<script src="https://unpkg.com/x-data-spreadsheet@1.0.13/dist/xspreadsheet.js"></script>
<script>
x.spreadsheet("#xspreadsheet");
</script>
npm install x-data-spreadsheet
<div id="x-spreadsheet-demo"></div>
import Spreadsheet from "x-data-spreadsheet";
// If you need to override the default options, you can set the override
// const options = {};
// new Spreadsheet('#x-spreadsheet-demo', options);
const s = new Spreadsheet("#x-spreadsheet-demo")
.loadData({}) // load data
.change((data) => {
// save data to db
});
// data validation
s.validate();
// default options
{
mode: "design", // 模式 design(设计)|scan(预览)|fill(填报)
version: "1.0", // 初始化参数版本号,一般不用管
view: { // excel容器宽/高
height: () => document.querySelector(`.${cssPrefix}`).getBoundingClientRect().height,
width: () => document.querySelector(`.${cssPrefix}`).getBoundingClientRect().width,
},
showGrid: true, // 是否显示excel网格
showToolbar: true, // 是否显示excel工具条
showFooter: true, // 是否显示excel底部状态栏
showContextmenu: true, // 是否显示excel右键菜单
showExtendContextmenu: false, //是否显示右键扩展菜单项
showSysExplain: false, //工具栏是否显示系统功能说明按钮
disableTools:[], // 禁用工具条的工具项,工具项包含:undo(撤销)|redo(恢复)|paintFormat(格式刷)|clearFormat(清除格式)|clearCell(清空单元格)|deleteCell(删除单元格)|readonly(只读)|format(数据格式)|font(字体)|fontSize(字号)|bold(加粗)|italic(倾斜)|underline(下划线)|strike(删除线)|textColor(字体颜色)|fillColor(填充颜色)|border(边框)|merge(合并单元格)|align(水平对齐)|valign(垂直对齐)|textwrap(自动换行)|freeze(冻结)|autoFilter(自动筛选)|formula(函数)
savedKjIds:[], // 受保护的控件id集合
row: {
len: 100, // excel初始行数
height: 20, // excel初始行号
indexHeight: 20 // excel默认行高
},
col: {
len: 26, // excel初始列数
width: 100, // excel初始列宽
indexWidth: 80, // excel默认列宽
minWidth: 60 // excel最小列宽
},
style: { // 单元格默认样式
bgcolor: '#ffffff', // 单元格背景色
align: 'left', // 单元格内容水平对齐方式 left(居左)|center(居中)|right(居右)
valign: 'middle', // 单元格内容垂直对齐方式 top(居上)|middle(居中)|bottom(居下)
textwrap: false, // 单元格内容是否自动换行
strike: false, // 单元格内容 删除线
underline: false, // 单元格内容 下划线
color: '#0a0a0a', // 单元格内容颜色
font: {
name: '宋体', // 单元格内容字体 默认为 宋体
size: 10, // 单元格内容字号
bold: false, // 单元格内容加粗
italic: false, // 单元格内容倾斜
}
}
}
// npm
import Spreadsheet from "x-data-spreadsheet";
new Spreadsheet(document.getElementById("xss-demo"));
<!-- Import via CDN -->
<link
rel="stylesheet"
href="https://unpkg.com/x-data-spreadsheet@1.0.13/dist/xspreadsheet.css"
/>
<script src="https://unpkg.com/x-data-spreadsheet@1.0.13/dist/xspreadsheet.js"></script>
git clone https://github.com/myliang/x-spreadsheet.git
cd x-spreadsheet
npm install
npm run dev
Open your browser and visit http://localhost:8080
Modern browsers(chrome, firefox, Safari, Edge, IE10+).
MIT
FAQs
web excel
The npm package @thtf/excel receives a total of 0 weekly downloads. As such, @thtf/excel popularity was classified as not popular.
We found that @thtf/excel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.