
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@lifetech-inc/x-data-spreadsheet
Advanced tools
A web-based JavaScript spreadsheet
npm install @lifetech-inc/x-data-spreadsheet
<div id="x-spreadsheet-demo"></div>
import Spreadsheet from "@lifetech-inc/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: 'edit', // edit | read
showToolbar: true,
showGrid: true,
showContextmenu: true,
menuItems: [
{ key: "copy", title: "コピー", label: "Ctrl+C" },
{ key: "cut", title: "切り取り", label: "Ctrl+X" },
{
key: "paste",
title: "貼り付け",
label: "Ctrl+V",
beforeRender: (val) => {
return val.replace(/[^0-9]/g, "");
},
},
{
key: "rotate-paste",
title: "転置して貼り付け",
beforeRender: (val) => {
return val.replace(/[^0-9]/g, "");
},
},
{
key: "insert-row-delete-end-row",
title: "選択した行数を上に挿入",
},
{
key: "delete-row-insert-end-row",
title: "選択した行数を削除",
},
{
key: "insert-cell-delete-end-cell",
title: "セルを追加して既存のセルを下に移動",
},
],
view: {
height: () => document.documentElement.clientHeight,
width: () => document.documentElement.clientWidth,
},
row: {
len: 100,
height: 25,
},
limitRowLen: 300,
col: {
len: 26,
width: 100,
indexWidth: 60,
minWidth: 60,
},
style: {
bgcolor: '#ffffff',
align: 'left',
valign: 'middle',
textwrap: false,
strike: false,
underline: false,
color: '#0a0a0a',
format: 'number',
font: {
name: 'Helvetica',
size: 10,
bold: false,
italic: false,
},
},
}
https://github.com/SheetJS/sheetjs/tree/master/demos/xspreadsheet#saving-data
thanks https://github.com/SheetJS/sheetjs
const s = new Spreadsheet("#x-spreadsheet-demo");
// event of click on cell
s.on("cell-selected", (cell, ri, ci) => {});
s.on("cells-selected", (cell, { sri, sci, eri, eci }) => {});
// edited on cell
s.on("cell-edited", (text, ri, ci) => {});
const s = new Spreadsheet("#x-spreadsheet-demo");
// cellText(ri, ci, text, sheetIndex = 0)
s.cellText(5, 5, "xxxx").cellText(6, 5, "yyy").reRender();
const s = new Spreadsheet("#x-spreadsheet-demo");
// cell(ri, ci, sheetIndex = 0)
s.cell(ri, ci);
// cellStyle(ri, ci, sheetIndex = 0)
s.cellStyle(ri, ci);
// npm
import Spreadsheet from "@lifetech-inc/x-data-spreadsheet";
import zhCN from "@lifetech-inc/x-data-spreadsheet/dist/locale/zh-cn";
Spreadsheet.locale("zh-cn", zhCN);
new Spreadsheet(document.getElementById("xss-demo"));
2024/05/22、tfp-im 更新
git clone https://github.com/lifetech-inc/x-spreadsheet.git
cd x-spreadsheet
npm config set strict-ssl false
npm install
export NODE_OPTIONS=--openssl-legacy-provider
npm run dev
Open your browser and visit http://127.0.0.1:8080.
Modern browsers(chrome, firefox, Safari).
npm login
// バージョンアップ
npm version patch # v1.0.0 からv1.0.1 にアップ
npm version minor # v1.0.1 からv1.1.0 にアップ
npm version major # v1.0.1 からv2.0.0 にアップ
npm publish --access public
MIT
FAQs
a javascript xpreadsheet
We found that @lifetech-inc/x-data-spreadsheet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.