Files
ReaderJS/package.json
T
adminandClaude Sonnet 4.6 4a28ce13c5 feat: add CSV/TSV, source-code, and spreadsheet (XLSX) support
- CSVRenderer: CSV/TSV → HTML table via Papa Parse (MIT); robust quoting,
  header row, horizontal scroll.
- CodeRenderer: source/config files (JS/TS/JSON/XML/YAML/CSS/Python/…) with
  highlight.js (BSD-3); JSON is pretty-printed. ~35 extensions.
- XLSXRenderer: .xlsx/.xls/.xlsm/.xlsb → one titled HTML table per sheet via
  SheetJS (Apache-2.0, from the official CDN build — current & secure).
- Register all in EXT_MAP; dropzone tags + badges; shared .data-table styling.
- Add the EXIF pill to the dropzone; list SheetJS / Papa Parse / highlight.js
  in the footer + README credits.

All three deps are permissive (Apache-2.0 / MIT / BSD-3), so the license policy
holds. Verified in preview: CSV (quoted commas parsed), JSON/Python highlighted
+ pretty-printed, 2-sheet XLSX renders both sheets. vite build ok.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 13:10:50 +02:00

32 lines
848 B
JSON

{
"name": "preview-js",
"version": "1.0.0",
"description": "Universal document viewer: PDF, ODF, RTF, DOCX — powered by pdf.js, WebODF, rtf.js and docx submodules",
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"submodules:init": "git submodule update --init --recursive",
"docs": "jsdoc src -r -d docs"
},
"dependencies": {
"chart.js": "^4.5.1",
"exifr": "^7.1.3",
"highlight.js": "^11.11.1",
"jszip": "^3.10.1",
"libarchive.js": "^2.0.2",
"mammoth": "^1.8.0",
"marked": "^18.0.5",
"papaparse": "^5.5.4",
"pdfjs-dist": "^4.9.155",
"pptxviewjs": "^1.1.9",
"rtf.js": "^2.2.0",
"utif": "^3.1.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
},
"devDependencies": {
"vite": "^6.0.7"
}
}