Skip to content

shenX-2021/write-large-xlsx

Repository files navigation

write-large-xlsx

NPM

write-large-xlsx is a simple and fast library of writing xlsx file, it is low memory and could write many large data.

this library is inspired by write-excel-file and exceljs.

Feature

  • low memory
  • streaming

Install

npm i write-large-xlsx

Usage

const { Workbook } = require('write-large-xlsx');

async function bootstrap() {
  const workbook = new Workbook(`./output.xlsx`);
  const worksheet = workbook.createWorksheet();

  worksheet.addRow(['string', true, new Date(), 10001]);
  // or
  worksheet.addRow([{ columnIdx: 10, value: 'string' }]);

  worksheet.finish();
  await workbook.finish();
}

bootstrap();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published