@fewangsit/xlsx-util
v1.0.0
Published
Internal utility for handling Excel files, based on SheetJS
Keywords
Readme
@fewangsit/xlsx-util
A lightweight utility for reading and writing Excel files (XLSX) built on top of SheetJS. Designed for internal use in Fewangsit projects.
Features
- Read
.xlsx,.xlsm,.xlsb,.csv, and more - Write and export Excel files from JavaScript/TypeScript
- Wrapper around SheetJS with a simplified internal API
Installation
npm install @fewangsit/xlsx-utilUsage
import * as XLSX from "@fewangsit/xlsx-util";
// Read from file or buffer
const workbook = XLSX.readFile("data.xlsx");
// Get worksheet
const worksheet = workbook.Sheets[workbook.SheetNames[0]];
// Convert worksheet to JSON
const data = XLSX.utils.sheet_to_json(worksheet);
console.log(data);API
This package re-exports some functionality of SheetJS (XLSX).
If you need to exports more, just uncomment the expors;
For complete API, refer to the SheetJS documentation.
License
Apache-2.0 — see the LICENSE file for details.
💠 Maintained internally by Fewangsit for internal applications. Not intended for general public use.
