convert-table

convert different json, xls, xlsx, xml, csv, tsv file types to table in nodejs

Usage no npm install needed!

<script type="module">
  import convertTable from 'https://cdn.skypack.dev/convert-table';
</script>

README

Convert Table

Build Status

convert different json, xls, xlsx, tsv, csv, xml file types to table in nodejs

Install

  npm install convert-table

Usage

  CvTb = require("convert-table");
  CvTb({
    input: "sample.xlsx",
    table: {
      chars: { 'top': '═' , 'top-mid': '╤' , 'top-left': '╔' , 'top-right': '╗'
        , 'bottom': '═' , 'bottom-mid': '╧' , 'bottom-left': '╚' , 'bottom-right': '╝'
        , 'left': '║' , 'left-mid': '╟' , 'mid': '─' , 'mid-mid': '┼'
        , 'right': '║' , 'right-mid': '╢' , 'middle': '│' }
    }
  }, function(table){
    table.show() // call show method to show up the table
  });
  • Settings

Preview

preview

License

MIT @chilijung