Skip to content

Releases: plotdb/csv4xls

0.4.3

03 Jun 03:21
Compare
Choose a tag to compare
  • fix typo in delimiter option determining

0.4.2

16 May 16:36
Compare
Choose a tag to compare
  • Add forceText option to force all cells in XLSX output to be text type
    • Prevents Excel from automatically converting data types
    • Works with toXlsx, toBlob, toHref, and download methods when using XLSX format
    • Usage: csv4xls.toBlob(data, {format: 'xlsx', forceText: true})

0.4.1

16 May 14:06
Compare
Choose a tag to compare
  • Add toHtml method 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
  • Add new format options to toBlob and download methods:
    • format: 'html' - outputs HTML table with MIME type text/html and .html extension
    • format: 'xls-html' - outputs HTML table with BOM and MIME type application/vnd.ms-excel for Excel compatibility with .xls extension
    • HTML options can be passed via options.html object

0.4.0

15 May 09:37
Compare
Choose a tag to compare
  • 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: .csv for comma, .tsv for tab
    • MIME type now depends on delimiter: text/csv for comma, text/tab-separated-values for tab
    • All API methods now accept a delimiter parameter
    • download API now accepts an options object with delimiter property
    • Default filename extension changed from .csv to .tsv when using default delimiter
  • Add support for XLSX format output
    • New toXlsx method to convert data to XLSX workbook
    • Add format option to toBlob, toHref, and download methods
    • 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)

0.3.0

09 Nov 12:27
Compare
Choose a tag to compare
  • add toString api

0.2.0

22 Jan 09:21
Compare
Choose a tag to compare
  • further minimize generated js file with mangling and compression
  • rename csv4xls.js, csv4xls.min.js to index.js and index.min.js
  • use csv4xls name in source
  • make module export simpler.
  • update main and browser field in package.json.
  • upgrade modules
  • patch test code to make it work with upgraded modules
  • release with compact directory structure

0.1.0

25 May 12:47
Compare
Choose a tag to compare
  • add download api for trigger csv download directly.

0.0.2

11 Dec 14:11
Compare
Choose a tag to compare
  • 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.

0.0.1

11 Dec 01:06
Compare
Choose a tag to compare
v0.0.1

build with no-header and not-bare option