Skip to content

pauky/xlsx-writer-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xlsx-writer-stream

A xlsx writer by stream in Node.js

Installation

$ npm install xlsx-writer-stream

Example

var XLSXWriterStream = require('xlsx-wirter-stream');

var writer = new XLSXWriterStream({
    file: 'example.xlsx'
});

// Optional: Adjust column widths
writer.defineColumns([
    { width: 20 },
    { width: 10 }
]);

// Optional: Set cell map title
writer.setCellMap(['name', 'value']);

// Add some simple rows
writer.addRow(['pauky', 'ykk']);
writer.addRow(['glowry', 'yrw', 'test']);

// Add multiple rows
writer.addRows([['1', '2'],['a', 'b']]);

// Finalize the spreadsheet. If you don't do this, the readstream will not end.
writer.finalize();

License

MIT

About

A xlsx writer by stream in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published