excel-csv-handler
v1.0.6
Published
A Node.js utility to read/write Excel and CSV files with GBK encoding support
Readme
excel-csv-handler
A simple Node.js library to read and write Excel (only for.xlsx) and CSV files, with built-in GBK encoding support for Chinese users.
Install
npm install excel-csv-handlerUsage
import ExcelCsvHandler from 'excel-csv-handler';
const handler = new ExcelCsvHandler();
await handler.write('./output.csv', [{ name: '张三', age: 25 }]);
const data = await handler.read('./output.csv');
console.log(data);import ExcelCsvHandler from 'excel-csv-handler';
const handler = new ExcelCsvHandler();
await handler.write('output.xlsx', [{ name: '张三', age: 25 }]);
const data = await handler.read('output.xlsx');
console.log(data);