Skip to content

Clipboard Table v0.1.0

Choose a tag to compare

@tevinch tevinch released this 09 Sep 05:37
· 168 commits to main since this release

Clipboard Table is a small, dependency-free JavaScript module for spreadsheet-style TSV text. It preserves quoted multiline cells, empty cells, whitespace, Unicode and leading zeroes, with configurable input limits and TypeScript declarations.

Try the free browser playground to paste CSV or tab-separated text and copy or download CSV, JSON or Markdown. Choose the input format, paste your table, then choose Parse. Values stay text, including identifiers such as 001.

For offline use, download the browser playground v0.4.0 ZIP, extract it and open index.html. The playground processes text locally. See the current guide for supported formats and limits.

Download the standalone clipboard-table-v0.1.0.zip for the standalone module, MIT license, examples and tests. The automatically generated “Source code” archives contain the entire Data Shape Kit repository.

After extracting the standalone archive:

cd clipboard-table-v0.1.0
node example.mjs
node --test test.mjs
import { parseClipboard, formatClipboard, toRecords } from "./index.mjs";
const rows = parseClipboard('name\tnote\r\nAda\t"first line\nsecond line"\r\n');
const records = toRecords(rows);

Usage and integration examples · Clipboard format pitfalls

The extracted archive passes all 31 parser, serializer and record-conversion tests. This works on plain text already provided by your application; it does not read the system clipboard, parse .xlsx/HTML, or restore formatting and values already lost during copying. It does not neutralize formulas for a spreadsheet. One final record newline is structural; additional empty records are preserved. Test your target spreadsheet's clipboard output before integrating it.

Standalone archive SHA-256:

653aa7e6ddddc745eb81af562e990f75eef28c567f15617b660011ac610dbb73

If this saved you a little time, you're welcome to buy me a coffee. Please don't feel obliged — the module is free to use under the MIT license.

  • USDC / SOL · Solana: 9tY6D9mwcFaJwwzEHvw2v7nhSpdjqjNBYtuooyBN6rYy
  • USDC / ETH · Base: 0x568Ab98578d682FB0B0b45619BE73EbFfbf5a6eA
  • USDT · BNB Smart Chain (BEP20): 0x568Ab98578d682FB0B0b45619BE73EbFfbf5a6eA

Please use the asset and network shown above.