dsh-csv-viewer
学习研究 活跃维护

dsh-csv-viewer

hi-wenw/dsh-csv-viewer

直接在浏览器中打开CSV/TSV文件,支持即时搜索、多列排序、原始模式查看,借助虚拟滚动渲染海量数据,操作流畅不卡顿。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
38 KB
仓库大小
2 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:hi-wenw/dsh-csv-viewer
git clone https://github.com/hi-wenw/dsh-csv-viewer.git
git clone git@github.com:hi-wenw/dsh-csv-viewer.git
README.md main

dsh-csv-viewer

DSH Web plugin that adds a dsh-better-sidebar viewer for .csv and .tsv files.

Install

Run this in the environment where DSH Web is installed:

dsh plugin --profile web add https://github.com/hi-wenw/dsh-csv-viewer.git

Restart DSH Web, then hard-refresh the browser with Ctrl+Shift+R. Open a CSV or TSV file from the sidebar to use the viewer.

Features

  • automatic delimiter detection for comma, tab, semicolon, and pipe-separated files;
  • virtualized rows, so large tables do not create one DOM node for every row;
  • sticky header and source row numbers;
  • case-insensitive content search;
  • numeric/text column sorting with ascending, descending, and reset states;
  • Table / Raw preview modes;
  • CSV quoting, escaped quotes, CRLF, and quoted newlines.

Development

pnpm install
pnpm build
pnpm check

The DSH client bundle is generated at lib/client.js. The host entry is lib/index.js and the bundle registration is in cordis.patch.yml.

License

MIT