Releases: plotdb/csv4xls
Releases · plotdb/csv4xls
0.4.3
0.4.2
- Add
forceTextoption to force all cells in XLSX output to be text type- Prevents Excel from automatically converting data types
- Works with
toXlsx,toBlob,toHref, anddownloadmethods when using XLSX format - Usage:
csv4xls.toBlob(data, {format: 'xlsx', forceText: true})
0.4.1
- Add
toHtmlmethod to convert data to HTML table format- Applies
mso-number-format:'\@'style to cells to prevent Excel from changing formats - Supports configurable table class, cell styling, and header row options
- Properly escapes HTML special characters in cell content
- Applies
- Add new format options to
toBlobanddownloadmethods:format: 'html'- outputs HTML table with MIME typetext/htmland.htmlextensionformat: 'xls-html'- outputs HTML table with BOM and MIME typeapplication/vnd.ms-excelfor Excel compatibility with.xlsextension- HTML options can be passed via
options.htmlobject
0.4.0
- BREAKING CHANGE: Add option to choose between comma and tab as delimiter
- Default delimiter changed to tab (
'\t'), which creates TSV files - File extension now depends on delimiter:
.csvfor comma,.tsvfor tab - MIME type now depends on delimiter:
text/csvfor comma,text/tab-separated-valuesfor tab - All API methods now accept a
delimiterparameter downloadAPI now accepts anoptionsobject withdelimiterproperty- Default filename extension changed from
.csvto.tsvwhen using default delimiter
- Default delimiter changed to tab (
- Add support for XLSX format output
- New
toXlsxmethod to convert data to XLSX workbook - Add
formatoption totoBlob,toHref, anddownloadmethods - Auto-detect XLSX availability with fallback to CSV/TSV
- Set appropriate MIME type and file extension based on format
- Add dependency on SheetJS library (xlsx.js)
- New
0.3.0
0.2.0
- further minimize generated js file with mangling and compression
- rename
csv4xls.js,csv4xls.min.jstoindex.jsandindex.min.js - use
csv4xlsname in source - make module export simpler.
- update
mainandbrowserfield inpackage.json. - upgrade modules
- patch test code to make it work with upgraded modules
- release with compact directory structure
0.1.0
0.0.2
- quote double quote properly by converting single double quote to double double quote.
- quote all values when preparing csv strings from array to prevent from unexpected line-break or delimiter char.
- use CR (carriage Return, \r) to all replace LF (line feed, \n) since excel seems prefer \r over \n.