0.2.0 • Published 10 years ago

convert-table v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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
  });

Preview

preview

License

MIT @chilijung